Merge pull request #11 from 1wilkens/master

Removed warnings about patterns in functions without body
This commit is contained in:
Benjamin Sago
2017-09-22 12:56:41 +01:00
committed by GitHub
+2 -2
View File
@@ -633,7 +633,7 @@ pub mod os {
Path::new(&self.extras.extras.home_dir)
}
fn with_home_dir(mut self, home_dir: &str) -> User {
fn with_home_dir(self, home_dir: &str) -> User {
self.extras.extras.home_dir = home_dir.to_owned();
self
}
@@ -642,7 +642,7 @@ pub mod os {
Path::new(&self.extras.extras.shell)
}
fn with_shell(mut self, shell: &str) -> User {
fn with_shell(self, shell: &str) -> User {
self.extras.extras.shell = shell.to_owned();
self
}