diff --git a/src/bindings.rs b/src/bindings.rs index 45a9e4b..7b9c641 100644 --- a/src/bindings.rs +++ b/src/bindings.rs @@ -104,11 +104,11 @@ pub(crate) mod ffi { // View properties fn dimensionRanges(self: &ImageView, level: u32) -> Result; - fn dimensionNames<'a>(self: &ImageView) -> &'a CxxVector; - fn dimensionUnits<'a>(self: &ImageView) -> &'a CxxVector; - fn dimensionTypes<'a>(self: &ImageView) -> &'a CxxVector; - fn scale<'a>(self: &ImageView) -> &'a CxxVector; - fn origin<'a>(self: &ImageView) -> &'a CxxVector; + fn dimensionNames(self: &ImageView) -> &CxxVector; + fn dimensionUnits(self: &ImageView) -> &CxxVector; + fn dimensionTypes(self: &ImageView) -> &CxxVector; + fn scale(self: &ImageView) -> &CxxVector; + fn origin(self: &ImageView) -> &CxxVector; fn bitsAllocated(self: &ImageView) -> u16; fn bitsStored(self: &ImageView) -> u16; fn highBit(self: &ImageView) -> u16; diff --git a/src/facade.rs b/src/facade.rs index 9bfa9d6..049a935 100644 --- a/src/facade.rs +++ b/src/facade.rs @@ -5,7 +5,7 @@ use crate::{ContainerName, Facade, Image, ImageType, Result}; use cxx::let_cxx_string; use std::path::Path; -impl<'a> Drop for Facade<'a> { +impl Drop for Facade<'_> { fn drop(&mut self) { if let Err(_err) = self.close() { // todo! log? @@ -16,7 +16,7 @@ impl<'a> Drop for Facade<'a> { /// A facade is a reference to a Philips Engine internal object /// The facade allow file manipulation & file information retrieval /// NOTE: Philips Engine and all internal objects are not thread safe -impl<'a> Facade<'a> { +impl Facade<'_> { /// Open an ISyntax file through a facade and specify a cache file /// if the container allows it pub(crate) fn open_with_cache_file, R: AsRef>( diff --git a/src/sub_image.rs b/src/sub_image.rs index bb76968..5497c96 100644 --- a/src/sub_image.rs +++ b/src/sub_image.rs @@ -12,7 +12,7 @@ use { std::io::Cursor, }; -impl<'a> Image<'a> { +impl Image<'_> { /// Returns the pixel transform used for this Image pub fn pixel_transform(&self) -> Result<&str> { Ok(self.inner.pixelTransform()?.to_str()?) diff --git a/src/view.rs b/src/view.rs index 96a2a89..c8b9e1d 100644 --- a/src/view.rs +++ b/src/view.rs @@ -8,7 +8,7 @@ use crate::{DimensionsRange, PhilipsEngine, Rectangle, RegionRequest, Result, Si #[cfg(feature = "image")] use {crate::errors::ImageError, image::RgbImage}; -impl<'a> View<'a> { +impl View<'_> { /// Returns the dimension ranges of the SubImage for a certain level /// For Macro and Label/ILE image this function return a result only for level 0 pub fn dimension_ranges(&self, level: u32) -> Result {