Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
wsyxbcl committed Dec 6, 2024
1 parent 177d868 commit d094419
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/tags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,7 @@ pub fn init_xmp(working_dir: PathBuf) -> anyhow::Result<()> {
// and skip the 0 timestamp if manufacturer write it
if !xmp_string.contains("1904-01-01") {
let re = Regex::new(r"(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2})Z").unwrap();
xmp_string = re
.replace_all(&xmp_string, "$1")
.to_string();
xmp_string = re.replace_all(&xmp_string, "$1").to_string();
}
} else {
// Get the modified time of the file
Expand Down

0 comments on commit d094419

Please sign in to comment.