From ddb0669bbf0b5bb9e039094e58e69a5a81f13494 Mon Sep 17 00:00:00 2001 From: Jiayi Zhao Date: Tue, 12 May 2020 22:33:10 -0400 Subject: add support for sorting via lexical and mtime --- src/config/mimetype.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/config') 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>(mut self, arg: S) -> Self { + pub fn arg>(&mut self, arg: S) -> &mut Self { self._args.push(arg.into()); self } - pub fn args(mut self, args: I) -> Self + pub fn args(&mut self, args: I) -> &mut Self where I: Iterator, S: std::convert::Into, @@ -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 } -- cgit v1.2.3