Skip to content

Commit

Permalink
Rename module escapei to escape and made it public directly
Browse files Browse the repository at this point in the history
I have no idea why such a complex module structure was used
  • Loading branch information
Mingun committed May 26, 2024
1 parent 5fd130a commit 99a64a8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
File renamed without changes.
8 changes: 1 addition & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,7 @@
pub mod de;
pub mod encoding;
pub mod errors;
mod escapei;
pub mod escape {
//! Manage xml character escapes
pub use crate::escapei::{
escape, minimal_escape, partial_escape, unescape, unescape_with, EscapeError,
};
}
pub mod escape;
pub mod events;
pub mod name;
pub mod reader;
Expand Down
2 changes: 1 addition & 1 deletion src/se/simple_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//! [as defined]: https://www.w3.org/TR/xmlschema11-1/#Simple_Type_Definition
use crate::errors::serialize::DeError;
use crate::escapei::_escape;
use crate::escape::_escape;
use crate::se::{Indent, QuoteLevel};
use serde::ser::{
Impossible, Serialize, SerializeSeq, SerializeTuple, SerializeTupleStruct,
Expand Down

0 comments on commit 99a64a8

Please sign in to comment.