Return &str instead of &String values
This commit is contained in:
parent
63113f83c3
commit
b12a76c2ae
1 changed files with 2 additions and 2 deletions
|
@ -59,12 +59,12 @@ impl Options {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get currently selected NS
|
// Get currently selected NS
|
||||||
pub fn ns(&self) -> &String {
|
pub fn ns(&self) -> &str {
|
||||||
self.ns.as_ref().unwrap()
|
self.ns.as_ref().unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get currently selected DB
|
// Get currently selected DB
|
||||||
pub fn db(&self) -> &String {
|
pub fn db(&self) -> &str {
|
||||||
self.db.as_ref().unwrap()
|
self.db.as_ref().unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue