Skip to content

Commit

Permalink
fix cargo fmt && doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorgan committed Jul 14, 2024
1 parent 95c5409 commit 1221414
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion core/src/services/oss/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,8 @@ impl Access for OssBackend {
match status {
StatusCode::OK => {
let headers = resp.headers();
let mut meta = parse_metadata(path, constants::USER_METADATA_PREFIX, resp.headers())?;
let mut meta =
parse_metadata(path, constants::USER_METADATA_PREFIX, resp.headers())?;

if let Some(v) = parse_header_to_str(headers, "x-oss-version-id")? {
meta.set_version(v);
Expand Down
4 changes: 2 additions & 2 deletions core/src/types/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ pub struct Lister {
/// use opendal::Entry;
/// use opendal::Result;
///
/// assert_eq!(256, size_of::<(String, Result<opendal::raw::RpStat>)>());
/// assert_eq!(256, size_of::<Option<Entry>>());
/// assert_eq!(304, size_of::<(String, Result<opendal::raw::RpStat>)>());
/// assert_eq!(304, size_of::<Option<Entry>>());
/// ```
///
/// So let's ignore this lint:
Expand Down

0 comments on commit 1221414

Please sign in to comment.