diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a1357b..c84869c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,4 +45,4 @@ jobs: - name: Run tests run: cargo test --all-features --all-targets - name: Run clippy - run: cargo clippy --all-features --all-targets -- --deny warnings + run: cargo clippy --all-features --all-targets -- --no-deps --deny warnings diff --git a/src/buffer/mod.rs b/src/buffer/mod.rs index 04c0179..ba09567 100644 --- a/src/buffer/mod.rs +++ b/src/buffer/mod.rs @@ -1202,7 +1202,7 @@ impl TextBuffer { }; } - fn measurement_config(&self) -> MeasurementConfig { + fn measurement_config(&self) -> MeasurementConfig<'_> { MeasurementConfig::new(&self.buffer) .with_word_wrap_column(self.word_wrap_column) .with_tab_size(self.tab_size) diff --git a/src/framebuffer.rs b/src/framebuffer.rs index 7548e87..b86d480 100644 --- a/src/framebuffer.rs +++ b/src/framebuffer.rs @@ -795,7 +795,7 @@ impl Bitmap { } /// Iterates over each row in the bitmap. - fn iter(&self) -> ChunksExact { + fn iter(&self) -> ChunksExact<'_, u32> { self.data.chunks_exact(self.size.width as usize) } } @@ -881,7 +881,7 @@ impl AttributeBuffer { } /// Iterates over each row in the bitmap. - fn iter(&self) -> ChunksExact { + fn iter(&self) -> ChunksExact<'_, Attributes> { self.data.chunks_exact(self.size.width as usize) } } diff --git a/src/sys/windows.rs b/src/sys/windows.rs index 76446dd..71d9b51 100644 --- a/src/sys/windows.rs +++ b/src/sys/windows.rs @@ -582,7 +582,7 @@ pub fn load_libicui18n() -> apperr::Result> { } /// Returns a list of preferred languages for the current user. -pub fn preferred_languages(arena: &Arena) -> Vec { +pub fn preferred_languages(arena: &Arena) -> Vec, &Arena> { // If the GetUserPreferredUILanguages() don't fit into 512 characters, // honestly, just give up. How many languages do you realistically need? const LEN: usize = 512;