Skip to content

Commit 40ad062

Browse files
committed
remove cstr
1 parent 5f637a9 commit 40ad062

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/storage.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use core::any::Any;
2-
use core::ffi::CStr;
32
use core::fmt::{self, Debug};
43

54
use serde::de::DeserializeOwned;
@@ -144,10 +143,7 @@ pub trait StorageIterate {
144143
}
145144

146145
pub trait StorageEntry {
147-
fn name_cstr(&self) -> &CStr;
148-
fn name(&self) -> Option<&str> {
149-
self.name_cstr().to_str().ok()
150-
}
146+
fn name(&self) -> &str;
151147
}
152148

153149
#[derive(Debug)]

0 commit comments

Comments
 (0)