Skip to content

Commit

Permalink
remove cstr
Browse files Browse the repository at this point in the history
  • Loading branch information
codysch committed May 11, 2023
1 parent 5f637a9 commit 40ad062
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/storage.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use core::any::Any;
use core::ffi::CStr;
use core::fmt::{self, Debug};

use serde::de::DeserializeOwned;
Expand Down Expand Up @@ -144,10 +143,7 @@ pub trait StorageIterate {
}

pub trait StorageEntry {
fn name_cstr(&self) -> &CStr;
fn name(&self) -> Option<&str> {
self.name_cstr().to_str().ok()
}
fn name(&self) -> &str;
}

#[derive(Debug)]
Expand Down

0 comments on commit 40ad062

Please # to comment.