fn loader(c: mpsc::Sender<String>) {
    let f = File::open("input").unwrap();
    for line in BufReader::new(f).lines() {
        c.send(line.unwrap()).unwrap();
    }
}
// Unnecessary, but I wanted a thread and a channel for my own entertainment.
// Advent of code is for fun!
Unnecessary, but I wanted a thread and a channel for my own entertainment.
Advent of code is for fun!
Unnecessary but I wanted a thread and a channel for my own entertainment . Advent of code is for fun!
fn loader(c: mpsc::Sender<String>) {
    let f = File::open("input").unwrap();
    for line in BufReader::new(f).lines() {
        c.send(line.unwrap()).unwrap();
    }
}
fn loader ( c : mpsc :: Sender < String > ) { let f = File :: open ( " " ) . unwrap ( ) ; for line in BufReader :: new ( f ) . lines ( ) { c . send ( line . unwrap ( ) ) . unwrap ( ) ; } }
Unnecessary, but I wanted a thread and a channel for my own entertainment.
Unnecessary but I wanted a thread and a channel for my own entertainment .
c
mpsc::Sender<String>