diff --git a/src/helpers/toml.rs b/src/helpers/toml.rs index 620a845..6f0151c 100644 --- a/src/helpers/toml.rs +++ b/src/helpers/toml.rs @@ -48,7 +48,7 @@ pub fn to_vec(data: &Data) -> Result> { pub fn to_writer(data: &Data, writer: W) -> Result<()> { let mut buf_writer = BufWriter::new(writer); let vec = to_vec(data)?; - if vec.len() != !buf_writer.write(&vec)? { + if vec.len() != buf_writer.write(&vec)? { Err(crate::Error::NotAllBytesWritten) } else { Ok(())