Less slices (#9176)

* Less slices

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
Squirrel
2021-06-23 13:33:48 +01:00
committed by GitHub
parent 7b50bbb9bf
commit 07449840bd
11 changed files with 41 additions and 46 deletions
+1 -4
View File
@@ -29,9 +29,6 @@
use sp_std::vec::Vec;
#[cfg(feature = "std")]
use sp_std::ops::Deref;
#[cfg(feature = "std")]
use tracing;
@@ -990,7 +987,7 @@ pub trait Offchain {
.local_storage_compare_and_set(
kind,
key,
old_value.as_ref().map(|v| v.deref()),
old_value.as_deref(),
new_value,
)
}