diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-05-12 22:33:10 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-05-12 22:33:10 -0400 |
commit | ddb0669bbf0b5bb9e039094e58e69a5a81f13494 (patch) | |
tree | 9031b08d8d42d59e32235c15d5ade56f12305929 /src/config | |
parent | e99f25b7d1e6c55fbfc59c6654f00de68e7c96ea (diff) |
add support for sorting via lexical and mtime
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/mimetype.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/config/mimetype.rs b/src/config/mimetype.rs index f8b163f..0520d9e 100644 --- a/src/config/mimetype.rs +++ b/src/config/mimetype.rs @@ -33,12 +33,12 @@ impl JoshutoMimetypeEntry { } } - pub fn arg<S: std::convert::Into<String>>(mut self, arg: S) -> Self { + pub fn arg<S: std::convert::Into<String>>(&mut self, arg: S) -> &mut Self { self._args.push(arg.into()); self } - pub fn args<I, S>(mut self, args: I) -> Self + pub fn args<I, S>(&mut self, args: I) -> &mut Self where I: Iterator<Item = S>, S: std::convert::Into<String>, @@ -47,17 +47,17 @@ impl JoshutoMimetypeEntry { self } - pub fn fork(mut self, fork: bool) -> Self { + pub fn fork(&mut self, fork: bool) -> &mut Self { self._fork = fork; self } - pub fn silent(mut self, silent: bool) -> Self { + pub fn silent(&mut self, silent: bool) -> &mut Self { self._silent = silent; self } - pub fn confirm_exit(mut self, confirm_exit: bool) -> Self { + pub fn confirm_exit(&mut self, confirm_exit: bool) -> &mut Self { self._confirm_exit = confirm_exit; self } |