summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/env.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/env.rs b/src/env.rs
index 5beead5..51e91a9 100644
--- a/src/env.rs
+++ b/src/env.rs
@@ -33,12 +33,12 @@ impl Environment {
}
}
- pub fn prefix(&mut self, s: &str) -> &mut Self {
+ pub fn prefix(mut self, s: &str) -> Self {
self.prefix = Some(s.into());
self
}
- pub fn separator(&mut self, s: &str) -> &mut Self {
+ pub fn separator(mut self, s: &str) -> Self {
self.separator = Some(s.into());
self
}