Skip to content
This repository was archived by the owner on Aug 12, 2021. It is now read-only.

Commit 079672c

Browse files
committed
use field init shorthand EVERYWHERE
Like #43008 (f668999), but _much more aggressive_.
1 parent 463aa3f commit 079672c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

terminfo/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ impl<T: Write + Send> TerminfoTerminal<T> {
231231
};
232232

233233
TerminfoTerminal {
234-
out: out,
234+
out,
235235
ti: terminfo,
236236
num_colors: nc,
237237
}

terminfo/parser/compiled.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ pub fn msys_terminfo() -> TermInfo {
337337
TermInfo {
338338
names: vec!["cygwin".to_string()], // msys is a fork of an older cygwin version
339339
bools: HashMap::new(),
340-
numbers: numbers,
341-
strings: strings,
340+
numbers,
341+
strings,
342342
}
343343
}
344344

0 commit comments

Comments
 (0)