-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
cargo fmt
errors that were breaking the build.
- Loading branch information
1 parent
9854185
commit 73ee5d0
Showing
2 changed files
with
7 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
#![allow(unused_imports)] | ||
use std::io::BufReader; | ||
use std::fs::File; | ||
use std::error::Error; | ||
use std::fs::File; | ||
use std::io::BufReader; | ||
|
||
fn main() -> Result<(), Box<dyn Error>> { | ||
use crate::*; | ||
let f = File::open("../exercise-templates/iterators/numbers.txt")?; | ||
let reader = BufReader::new(f); | ||
|
||
// Write your iterator chain here | ||
// Write your iterator chain here | ||
let sum_of_odd_numbers: i32 = todo!("use reader.lines() and Iterator methods"); | ||
|
||
assert_eq!(sum_of_odd_numbers, 31); | ||
Ok(()) | ||
} | ||
|