cargo format

This commit is contained in:
Yuriy Dupyn 2024-01-28 22:40:41 +01:00
parent 4d45da0cd1
commit 845db102c2
33 changed files with 885 additions and 530 deletions

View file

@ -50,16 +50,17 @@ impl Decode for PgString {
bytes.push(byte);
}
let string = String::from_utf8(bytes)
.map_err(|e| DecodeError::Utf8 { inner: e.utf8_error() })?;
let string = String::from_utf8(bytes).map_err(|e| DecodeError::Utf8 {
inner: e.utf8_error(),
})?;
Ok(PgString(string))
}
}
#[cfg(test)]
mod tests {
use crate::message::primitive::data::MessageData;
use super::*;
use crate::message::primitive::data::MessageData;
#[test]
fn test_encode_decode_utf8() {