Skip to content

Commit

Permalink
refactor(object)
Browse files Browse the repository at this point in the history
  • Loading branch information
tu6ge committed Aug 16, 2023
1 parent 118e5c2 commit 1cffbe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/object/content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ impl Inner {
}
fn parse_upload_id(&mut self, xml: &str) -> Result<(), ContentError> {
if let (Some(start), Some(end)) = (xml.find("<UploadId>"), xml.find("</UploadId>")) {
self.upload_id = (&xml[start + 10..end]).to_owned();
self.upload_id = xml[start + 10..end].to_owned();
Ok(())
} else {
Err(ContentError::new(ContentErrorKind::NoFoundUploadId))
Expand Down

0 comments on commit 1cffbe4

Please sign in to comment.