cargo format
This commit is contained in:
parent
4d45da0cd1
commit
845db102c2
33 changed files with 885 additions and 530 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue