Return &str instead of &String values

This commit is contained in:
Tobie Morgan Hitchcock 2022-02-26 00:35:11 +00:00
parent 63113f83c3
commit b12a76c2ae

View file

@ -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()
}