diff --git a/gix/src/dirwalk/options.rs b/gix/src/dirwalk/options.rs index 71a0511f2b8..c72dc157148 100644 --- a/gix/src/dirwalk/options.rs +++ b/gix/src/dirwalk/options.rs @@ -115,13 +115,13 @@ impl Options { self } /// Controls the way untracked files are emitted. By default, this is happening immediately and without any simplification. - pub fn emit_untracked(mut self, toggle: EmissionMode) -> Self { - self.emit_untracked = toggle; + pub fn emit_untracked(mut self, mode: EmissionMode) -> Self { + self.emit_untracked = mode; self } /// Like [`emit_untracked()`](Self::emit_untracked), but only requires a mutably borrowed instance. - pub fn set_emit_untracked(&mut self, toggle: EmissionMode) -> &mut Self { - self.emit_untracked = toggle; + pub fn set_emit_untracked(&mut self, mode: EmissionMode) -> &mut Self { + self.emit_untracked = mode; self } /// If `toggle` is `true`, emit empty directories as well. Note that a directory also counts as empty if it has any @@ -180,8 +180,8 @@ impl Options { /// Like [`symlinks_to_directories_are_ignored_like_directories()`](Self::symlinks_to_directories_are_ignored_like_directories), /// but only requires a mutably borrowed instance. - pub fn set_symlinks_to_directories_are_ignored_like_directories(&mut self, value: bool) -> &mut Self { - self.symlinks_to_directories_are_ignored_like_directories = value; + pub fn set_symlinks_to_directories_are_ignored_like_directories(&mut self, toggle: bool) -> &mut Self { + self.symlinks_to_directories_are_ignored_like_directories = toggle; self } }