Skip to content

Commit

Permalink
remove stdin because bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Joeyh021 committed Feb 27, 2022
1 parent abe76ac commit d7858a7
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ use std::path::Path;

//get all input from stdin
fn get_input() -> String {
let mut buf = String::new();
let stdin = stdin();
for line in stdin.lock().lines().flatten() {
buf.push_str(&line);
}
buf
// let mut buf = String::new();
// let stdin = stdin();
// for line in stdin.lock().lines().flatten() {
// buf.push_str(&line);
// }
// buf

//stdin bugged
//just return nothing for now
String::new()
}

fn main() {
Expand Down

0 comments on commit d7858a7

Please sign in to comment.