Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(s3s): export xml module #189

Merged
merged 1 commit into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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