clippy fixes

This commit is contained in:
Vinzenz Schroeter 2024-10-14 22:07:13 +02:00
parent f2ff07d9d9
commit 8d3ca4dfad
3 changed files with 3 additions and 3 deletions

View file

@ -120,7 +120,7 @@ mod feature_cp437 {
/* FX */ '≡', '±', '≥', '≤', '⌠', '⌡', '÷', '≈', '°', '∙', '·', '√', 'ⁿ', '²', '■', ' ',
];
const UTF8_TO_CP437: once_cell::sync::Lazy<HashMap<char, u8>> =
static UTF8_TO_CP437: once_cell::sync::Lazy<HashMap<char, u8>> =
once_cell::sync::Lazy::new(|| {
let pairs = CP437_TO_UTF8
.iter()

View file

@ -118,7 +118,7 @@ impl<T: PrimitiveGridType> PrimitiveGrid<T> {
F: FnMut(&T) -> TConverted,
{
let data = self.data_ref().iter().map(f).collect::<Vec<_>>();
PrimitiveGrid::load(self.width(), self.height(), &*data)
PrimitiveGrid::load(self.width(), self.height(), &data)
}
}

View file

@ -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,