Skip to content

Commit

Permalink
Elide lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
foresterre committed Dec 12, 2024
1 parent 72d6522 commit 82ad1ad
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/sic_image_engine/src/operations/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl<'image> Diff<'image> {
}
}

impl<'image> ImageOperation for Diff<'image> {
impl ImageOperation for Diff<'_> {
fn apply_operation(&self, image: &mut SicImage) -> Result<(), SicImageEngineError> {
match image {
SicImage::Static(image) => diff_impl(image, self.path),
Expand Down
2 changes: 1 addition & 1 deletion crates/sic_image_engine/src/operations/filter3x3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ impl<'kernel> Filter3x3<'kernel> {
}
}

impl<'kernel> ImageOperation for Filter3x3<'kernel> {
impl ImageOperation for Filter3x3<'_> {
fn apply_operation(&self, image: &mut SicImage) -> Result<(), SicImageEngineError> {
match image {
SicImage::Static(image) => *image = image.filter3x3(self.kernel),
Expand Down
2 changes: 1 addition & 1 deletion crates/sic_image_engine/src/operations/overlay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ impl<'overlay> Overlay<'overlay> {
}
}

impl<'overlay> ImageOperation for Overlay<'overlay> {
impl ImageOperation for Overlay<'_> {
fn apply_operation(&self, image: &mut SicImage) -> Result<(), SicImageEngineError> {
match image {
SicImage::Static(image) => overlay_static(image, self.inputs),
Expand Down
2 changes: 1 addition & 1 deletion crates/sic_parser/src/named_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ struct AnnotatedArgs<'a> {
arguments: Vec<Value<'a>>,
}

impl<'a> AnnotatedArgs<'a> {
impl AnnotatedArgs<'_> {
fn ident(&self) -> Ident {
self.ident
}
Expand Down

0 comments on commit 82ad1ad

Please sign in to comment.