Skip to content

Commit

Permalink
update code format
Browse files Browse the repository at this point in the history
  • Loading branch information
zjregee committed Mar 3, 2024
1 parent 13120b5 commit 4981d6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions core/src/services/swift/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,10 @@ mod tests {
hash: "5e6b5b70b0426b1cc1968003e1afa5ad".to_string(),
name: "test.txt".to_string(),
last_modified: "2023-11-01T03:00:23.147480".to_string(),
content_type:
Some("multipart/form-data;boundary=------------------------25004a866ee9c0cb"
.to_string()),
content_type: Some(
"multipart/form-data;boundary=------------------------25004a866ee9c0cb"
.to_string()
),
}
);

Expand Down
2 changes: 1 addition & 1 deletion core/src/services/swift/lister.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl oio::PageList for SwiftLister {
last_modified.push('Z');
}
meta.set_last_modified(parse_datetime_from_rfc3339(last_modified.as_str())?);

if let Some(content_type) = content_type {
meta.set_content_type(content_type.as_str());
}
Expand Down

0 comments on commit 4981d6a

Please sign in to comment.