diff --git a/src/create.rs b/src/create.rs index c55b555..eac24ac 100644 --- a/src/create.rs +++ b/src/create.rs @@ -22,14 +22,14 @@ pub struct Create { fn msgsize_default() -> usize { match fs::read_to_string("/proc/sys/fs/mqueue/msgsize_default") { - Ok(m) => m.trim().parse::().unwrap(), // should never fail + Ok(m) => m.trim().parse::().expect("can never fail"), _ => 8192, } } fn msg_default() -> usize { match fs::read_to_string("/proc/sys/fs/mqueue/msg_default") { - Ok(m) => m.trim().parse::().unwrap(), // should never fail + Ok(m) => m.trim().parse::().expect("can never fail"), _ => 10, } }