Skip to content

Commit

Permalink
tail: replace some Default::default()
Browse files Browse the repository at this point in the history
  • Loading branch information
cakebaker committed Jul 14, 2023
1 parent 0ee9298 commit cb2a07e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/uu/tail/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cb2a07e

Please sign in to comment.