From 8d3ca4dfad5002fbd00d00c0948d4ae0b058ca84 Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Mon, 14 Oct 2024 22:07:13 +0200 Subject: [PATCH] clippy fixes --- crates/servicepoint/src/cp437.rs | 2 +- crates/servicepoint/src/primitive_grid.rs | 2 +- crates/servicepoint_binding_c/src/command.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/servicepoint/src/cp437.rs b/crates/servicepoint/src/cp437.rs index 1a4b25d..c6df59c 100644 --- a/crates/servicepoint/src/cp437.rs +++ b/crates/servicepoint/src/cp437.rs @@ -120,7 +120,7 @@ mod feature_cp437 { /* FX */ '≡', '±', '≥', '≤', '⌠', '⌡', '÷', '≈', '°', '∙', '·', '√', 'ⁿ', '²', '■', ' ', ]; - const UTF8_TO_CP437: once_cell::sync::Lazy> = + static UTF8_TO_CP437: once_cell::sync::Lazy> = once_cell::sync::Lazy::new(|| { let pairs = CP437_TO_UTF8 .iter() diff --git a/crates/servicepoint/src/primitive_grid.rs b/crates/servicepoint/src/primitive_grid.rs index 0b947b6..ca2ce05 100644 --- a/crates/servicepoint/src/primitive_grid.rs +++ b/crates/servicepoint/src/primitive_grid.rs @@ -118,7 +118,7 @@ impl PrimitiveGrid { F: FnMut(&T) -> TConverted, { let data = self.data_ref().iter().map(f).collect::>(); - PrimitiveGrid::load(self.width(), self.height(), &*data) + PrimitiveGrid::load(self.width(), self.height(), &data) } } diff --git a/crates/servicepoint_binding_c/src/command.rs b/crates/servicepoint_binding_c/src/command.rs index d273437..4bbc408 100644 --- a/crates/servicepoint_binding_c/src/command.rs +++ b/crates/servicepoint_binding_c/src/command.rs @@ -4,7 +4,7 @@ use std::ptr::null_mut; -use servicepoint::{Brightness, Command, Origin}; +use servicepoint::{Brightness, Origin}; use crate::{ SPBitVec, SPBrightnessGrid, SPCompressionCode, SPCp437Grid, SPPacket,