1 2 3 4 5 6 7 8
use anyhow::Result; use std::io::Read; pub fn read_input() -> Result<String> { let mut input = String::new(); std::io::stdin().read_to_string(&mut input)?; Ok(input) }