From f32f083c81a5034530ac33ad2bc460dd234186a5 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sun, 4 May 2025 20:43:32 -0400 Subject: [Rust] More cleanup regarding `BnString` - Removed `to_string` shortcut from `BnString`. - Misc formatting --- rust/src/database.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/src/database.rs') diff --git a/rust/src/database.rs b/rust/src/database.rs index d01839d2..61d6f608 100644 --- a/rust/src/database.rs +++ b/rust/src/database.rs @@ -147,10 +147,10 @@ impl Database { } /// Get a dictionary of all globals - pub fn globals(&self) -> HashMap { + pub fn globals(&self) -> HashMap { self.global_keys() .iter() - .filter_map(|key| Some((key.to_string(), self.read_global(key)?.to_string()))) + .filter_map(|key| Some((key.to_string(), self.read_global(key)?))) .collect() } -- cgit v1.3.1