Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
scouten-adobe committed Dec 12, 2024
1 parent 303de55 commit e0d356c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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 e0d356c

Please sign in to comment.