From 9365ad609e97d1ab002ac9ac7b393399ab57fea4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 11:23:50 -0800 Subject: [PATCH] update: update thiserror requirement from 1.0 to 2.0 (#247) * update: update thiserror requirement from 1.0 to 2.0 Updates the requirements on [thiserror](https://github.com/dtolnay/thiserror) to permit the latest version. - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/1.0.0...2.0.0) --- updated-dependencies: - dependency-name: thiserror dependency-type: direct:production ... Signed-off-by: dependabot[bot] * Allow Dependabot PR title pattern * Unicode-DFS-2016 no longer encountered * Allow Unicode-3.0 license * Clippy --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Eric Scouten --- .github/workflows/pr_title.yml | 5 +++++ Cargo.toml | 2 +- deny.toml | 3 ++- src/xmp_iterator.rs | 4 ++-- src/xmp_meta.rs | 6 +++--- 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pr_title.yml b/.github/workflows/pr_title.yml index be82d9b..c6c5b03 100644 --- a/.github/workflows/pr_title.yml +++ b/.github/workflows/pr_title.yml @@ -77,6 +77,11 @@ jobs: exit 0; fi + if echo "$PR_TITLE" | grep -E '^update: update '; then + echo "Exception / OK: Dependabot update pattern" + exit 0; + fi + echo "Installing commitlint-rs. Please wait 30-40 seconds ..." cargo install --quiet commitlint-rs set -e diff --git a/Cargo.toml b/Cargo.toml index 7c09a2a..da743a5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,7 @@ crt_static = [] [dependencies] chrono = { version = "0.4.24", optional = true } num_enum = "0.7.0" -thiserror = "1.0" +thiserror = "2.0" [build-dependencies] cc = { version = "1.0.101", features = ["parallel"] } diff --git a/deny.toml b/deny.toml index 8a352eb..f1ba634 100644 --- a/deny.toml +++ b/deny.toml @@ -28,7 +28,8 @@ allow = [ # "ISC", "MIT", # "MPL-2.0", - "Unicode-DFS-2016", + # "Unicode-DFS-2016", + "Unicode-3.0", # "Zlib", ] confidence-threshold = 0.9 diff --git a/src/xmp_iterator.rs b/src/xmp_iterator.rs index de6a46d..924fd4b 100644 --- a/src/xmp_iterator.rs +++ b/src/xmp_iterator.rs @@ -76,7 +76,7 @@ impl<'a> XmpIterator<'a> { } } -impl<'a> Drop for XmpIterator<'a> { +impl Drop for XmpIterator<'_> { fn drop(&mut self) { unsafe { ffi::CXmpIteratorDrop(self.i); @@ -84,7 +84,7 @@ impl<'a> Drop for XmpIterator<'a> { } } -impl<'a> Iterator for XmpIterator<'a> { +impl Iterator for XmpIterator<'_> { type Item = XmpProperty; fn next(&mut self) -> Option { diff --git a/src/xmp_meta.rs b/src/xmp_meta.rs index 9ac1a75..f9cedac 100644 --- a/src/xmp_meta.rs +++ b/src/xmp_meta.rs @@ -2131,7 +2131,7 @@ impl fmt::Display for XmpMeta { struct PropertyDisplayHelper<'a>(pub &'a XmpMeta, pub &'a XmpProperty); -impl<'a> fmt::Debug for PropertyDisplayHelper<'a> { +impl fmt::Debug for PropertyDisplayHelper<'_> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> { let mut flags: Vec<&'static str> = vec![]; let value = &self.1.value; @@ -2213,7 +2213,7 @@ impl<'a> fmt::Debug for PropertyDisplayHelper<'a> { struct PropertyListHelper<'a>(pub &'a XmpMeta, pub &'a XmpProperty); -impl<'a> fmt::Debug for PropertyListHelper<'a> { +impl fmt::Debug for PropertyListHelper<'_> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> { let mut dl = f.debug_list(); @@ -2286,7 +2286,7 @@ pub struct ArrayProperty<'a> { index: i32, } -impl<'a> Iterator for ArrayProperty<'a> { +impl Iterator for ArrayProperty<'_> { type Item = XmpValue; fn next(&mut self) -> Option {