mirror of
https://github.com/cccb/servicepoint.git
synced 2025-01-18 10:00:14 +01:00
clippy fixes
This commit is contained in:
parent
f2ff07d9d9
commit
8d3ca4dfad
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue