Skip to content

Commit

Permalink
update: update thiserror requirement from 1.0 to 2.0 (#247)
Browse files Browse the repository at this point in the history
* 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](dtolnay/thiserror@1.0.0...2.0.0)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Allow Dependabot PR title pattern

* Unicode-DFS-2016 no longer encountered

* Allow Unicode-3.0 license

* Clippy

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eric Scouten <scouten@adobe.com>
  • Loading branch information
dependabot[bot] and scouten-adobe authored Dec 12, 2024
1 parent a270845 commit 9365ad6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pr_title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
3 changes: 2 additions & 1 deletion deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ allow = [
# "ISC",
"MIT",
# "MPL-2.0",
"Unicode-DFS-2016",
# "Unicode-DFS-2016",
"Unicode-3.0",
# "Zlib",
]
confidence-threshold = 0.9
Expand Down
4 changes: 2 additions & 2 deletions src/xmp_iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ impl<'a> XmpIterator<'a> {
}
}

impl<'a> Drop for XmpIterator<'a> {
impl Drop for XmpIterator<'_> {
fn drop(&mut self) {
unsafe {
ffi::CXmpIteratorDrop(self.i);
}
}
}

impl<'a> Iterator for XmpIterator<'a> {
impl Iterator for XmpIterator<'_> {
type Item = XmpProperty;

fn next(&mut self) -> Option<Self::Item> {
Expand Down
6 changes: 3 additions & 3 deletions src/xmp_meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();

Expand Down Expand Up @@ -2286,7 +2286,7 @@ pub struct ArrayProperty<'a> {
index: i32,
}

impl<'a> Iterator for ArrayProperty<'a> {
impl Iterator for ArrayProperty<'_> {
type Item = XmpValue<String>;

fn next(&mut self) -> Option<Self::Item> {
Expand Down

0 comments on commit 9365ad6

Please sign in to comment.