Skip to content

Commit

Permalink
Minor corrections and consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
RedPhoenixQ committed Sep 29, 2024
1 parent 41c57d8 commit 21ec992
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,9 @@ pub mod serialize {
match self {
SeError::Custom(s) => write!(f, "{}", s),
SeError::Io(e) => write!(f, "I/O error: {}", e),
SeError::Fmt(e) => write!(f, "Formatting error: {}", e),
SeError::Unsupported(s) => write!(f, "Unsupported value: {}", s),
SeError::NonEncodable(e) => write!(f, "Malformed UTF-8: {}", e),
SeError::Fmt(e) => write!(f, "formatting error: {}", e),
SeError::Unsupported(s) => write!(f, "unsupported value: {}", s),
SeError::NonEncodable(e) => write!(f, "malformed UTF-8: {}", e),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/se/key.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::errors::serialize::SeError;
use crate::se::SeError;
use serde::ser::{Impossible, Serialize, Serializer};
use serde::serde_if_integer128;
use std::fmt::Write;
Expand Down
2 changes: 1 addition & 1 deletion src/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ impl<W: Write> Writer<W> {
/// # use serde::Serialize;
/// # use quick_xml::events::{BytesStart, Event};
/// # use quick_xml::writer::Writer;
/// # use quick_xml::SeError;
/// # use quick_xml::se::SeError;
/// # fn main() -> Result<(), SeError> {
/// #[derive(Debug, PartialEq, Serialize)]
/// struct MyData {
Expand Down
3 changes: 1 addition & 2 deletions tests/serde-se.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use quick_xml::de::from_str;
use quick_xml::se::Serializer;
use quick_xml::se::{SeError, Serializer};
use quick_xml::utils::Bytes;
use quick_xml::SeError;

use serde::{serde_if_integer128, Deserialize, Serialize};
use std::collections::BTreeMap;
Expand Down

0 comments on commit 21ec992

Please sign in to comment.