From f2a8014600a2c000bf2239b8aa95d5fce5b42e3e Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Fri, 14 Jul 2023 10:27:35 +0200 Subject: [PATCH] tail: replace some Default::default() --- src/uu/tail/src/args.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/uu/tail/src/args.rs b/src/uu/tail/src/args.rs index e5d6d83ba4d..cee314870a7 100644 --- a/src/uu/tail/src/args.rs +++ b/src/uu/tail/src/args.rs @@ -149,21 +149,21 @@ impl Default for Settings { Self { max_unchanged_stats: 5, sleep_sec: Duration::from_secs_f32(1.0), - follow: Default::default(), - mode: Default::default(), + follow: Option::default(), + mode: FilterMode::default(), pid: Default::default(), retry: Default::default(), use_polling: Default::default(), verbose: Default::default(), presume_input_pipe: Default::default(), - inputs: Default::default(), + inputs: Vec::default(), } } } impl Settings { pub fn from_obsolete_args(args: &parse::ObsoleteArgs, name: Option<&OsString>) -> Self { - let mut settings: Self = Default::default(); + let mut settings = Settings::default(); if args.follow { settings.follow = if name.is_some() { Some(FollowMode::Name)