15 lines
354 B
Rust
15 lines
354 B
Rust
|
use std::io::{self, Write};
|
||
|
|
||
|
use day46::prevent_distractions;
|
||
|
|
||
|
fn main() {
|
||
|
print!("Insert video title: ");
|
||
|
io::stdout().flush().unwrap();
|
||
|
let mut buffer = String::new();
|
||
|
io::stdin()
|
||
|
.read_line(&mut buffer)
|
||
|
.expect("Failed to read line");
|
||
|
let result = prevent_distractions(buffer.trim());
|
||
|
println!("{}", result);
|
||
|
}
|