From b12a76c2ae6c35c178d490c2aef6474ecaa6f5f1 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Sat, 26 Feb 2022 00:35:11 +0000 Subject: [PATCH] Return &str instead of &String values --- lib/src/dbs/options.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/dbs/options.rs b/lib/src/dbs/options.rs index 847417ee..84ce4d37 100644 --- a/lib/src/dbs/options.rs +++ b/lib/src/dbs/options.rs @@ -59,12 +59,12 @@ impl Options { } // Get currently selected NS - pub fn ns(&self) -> &String { + pub fn ns(&self) -> &str { self.ns.as_ref().unwrap() } // Get currently selected DB - pub fn db(&self) -> &String { + pub fn db(&self) -> &str { self.db.as_ref().unwrap() }