src: use core instead of std in some places, aiming for no_std compat

This commit is contained in:
2024-12-01 16:17:51 +01:00
parent 0f73b42818
commit 36aead9762
6 changed files with 15 additions and 15 deletions

View File

@ -6,7 +6,7 @@ use crate::power::brightness_for_mw;
use crate::geometry::*;
use crate::mappings::*;
use std::fmt::Debug;
use core::fmt::Debug;
struct StrideSampler<'a, P: Pixbuf> {
pixbuf: &'a mut P,
@ -26,7 +26,7 @@ impl<'a, P: Pixbuf> PixelView for StrideSampler<'a, P> {
}
impl<P: Pixbuf, T: FastWrite> Debug for StrideOutput<P, T> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
f.debug_struct("StrideOutput").finish()
}
}