diff options
author | Canop <cano.petrole@gmail.com> | 2020-06-27 10:08:32 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-06-27 10:08:32 +0200 |
commit | 6ae4cc421ef3db9f6f458a023780af899313f821 (patch) | |
tree | 1338ea4f7ff697239917aece9d8eb283bdfbfdf5 /src/command | |
parent | 95498b6b4518c29d1d4c4080a65139528eca5dfb (diff) |
sacrifices to the Clippy god
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/parts.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/parts.rs b/src/command/parts.rs index 839eeb8..62ed2f7 100644 --- a/src/command/parts.rs +++ b/src/command/parts.rs @@ -49,7 +49,7 @@ impl CommandParts { break; } if c == '/' { - pt.mutate_or_create_atom(PatternParts::new).add_part(); + pt.mutate_or_create_atom(PatternParts::default).add_part(); continue; } let allow_inter_pattern_token = match pt.current_atom() { @@ -82,7 +82,7 @@ impl CommandParts { } } } - pt.mutate_or_create_atom(PatternParts::new).push(c); + pt.mutate_or_create_atom(PatternParts::default).push(c); escaping = false; } let mut verb_invocation = None; |