Skip to content

Commit

Permalink
feat(s3s): export xml module
Browse files Browse the repository at this point in the history
  • Loading branch information
Nugine committed Oct 13, 2024
1 parent a030b3e commit f7e45a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/s3s/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ mod s3_op;
mod s3_trait;
mod sig_v2;
mod sig_v4;
mod xml;

pub mod access;
pub mod auth;
Expand All @@ -45,6 +44,7 @@ pub mod host;
pub mod path;
pub mod service;
pub mod stream;
pub mod xml;

pub use self::error::*;
pub use self::http::Body;
Expand Down
2 changes: 2 additions & 0 deletions crates/s3s/src/xml/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::missing_errors_doc)] // TODO

mod de;
pub use self::de::*;

Expand Down
1 change: 1 addition & 0 deletions crates/s3s/src/xml/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ impl<W: Write> Serializer<W> {
self.event(Event::Decl(BytesDecl::new("1.0", Some("UTF-8"), None)))
}

#[allow(clippy::missing_panics_doc)]
pub fn timestamp(&mut self, name: &str, val: &Timestamp, fmt: TimestampFormat) -> SerResult {
fmt_timestamp(val, fmt, |b| self.content(name, str::from_ascii_simd(b).unwrap()))
}
Expand Down

0 comments on commit f7e45a7

Please sign in to comment.