explicit types
This commit is contained in:
parent
f14d4b34ee
commit
01a76b16a1
@ -13,11 +13,11 @@ fn main() {
|
|||||||
simplelog::TerminalMode::Mixed,
|
simplelog::TerminalMode::Mixed,
|
||||||
)])
|
)])
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let file = File::open("/etc/passwd").unwrap();
|
let file: File = File::open("/etc/passwd").unwrap();
|
||||||
let reader = BufReader::new(file);
|
let reader: BufReader<File> = BufReader::new(file);
|
||||||
|
|
||||||
for line in reader.lines() {
|
for line in reader.lines() {
|
||||||
let line = line.unwrap();
|
let line: String = line.unwrap();
|
||||||
println!("{}", User::new_from_string(line).unwrap());
|
println!("{}", User::new_from_string(line).unwrap());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user