Commit edfe96b 1 parent 8380e40 commit edfe96b Copy full SHA for edfe96b
File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,5 @@ members = [
5
5
" rustlatin/*" ,
6
6
" tcp-echo-server" ,
7
7
" async-chat/*" ,
8
+ " iterators" ,
8
9
]
Original file line number Diff line number Diff line change @@ -3,4 +3,8 @@ name = "iterators"
3
3
version = " 0.1.0"
4
4
edition = " 2021"
5
5
6
+ [[bin ]]
7
+ name = " iter1"
8
+ path = " src/bin/iter1.rs"
9
+
6
10
[dependencies ]
Original file line number Diff line number Diff line change @@ -3,10 +3,9 @@ use std::io::BufReader;
3
3
use std:: fs:: File ;
4
4
use std:: error:: Error ;
5
5
6
- #[ test]
7
- fn iterator_test ( ) -> Result < ( ) , Box < dyn Error > > {
6
+ fn main ( ) -> Result < ( ) , Box < dyn Error > > {
8
7
use crate :: * ;
9
- let f = File :: open ( "numbers.txt" ) ?;
8
+ let f = File :: open ( "../exercise-templates/iterators/ numbers.txt" ) ?;
10
9
let mut reader = BufReader :: new ( f) ;
11
10
12
11
// Write your iterator chain here
You can’t perform that action at this time.
0 commit comments