Skip to content

Commit 2f5287b

Browse files
authored
Merge pull request #249 from epage/foo
chore: Make clippy happy
2 parents a41b13a + 8ebd669 commit 2f5287b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

crates/anstyle/src/color.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ mod test {
656656

657657
#[test]
658658
fn print_size_of() {
659-
use std::mem::size_of;
659+
use core::mem::size_of;
660660
dbg!(size_of::<Color>());
661661
dbg!(size_of::<AnsiColor>());
662662
dbg!(size_of::<Ansi256Color>());

crates/anstyle/src/effect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ mod test {
385385

386386
#[test]
387387
fn print_size_of() {
388-
use std::mem::size_of;
388+
use core::mem::size_of;
389389
dbg!(size_of::<Effects>());
390390
dbg!(size_of::<EffectsDisplay>());
391391
}

crates/anstyle/src/reset.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ mod test {
2828

2929
#[test]
3030
fn print_size_of() {
31-
use std::mem::size_of;
31+
use core::mem::size_of;
3232
dbg!(size_of::<Reset>());
3333
}
3434

crates/anstyle/src/style.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ impl core::fmt::Display for StyleDisplay {
431431
#[test]
432432
#[cfg(feature = "std")]
433433
fn print_size_of() {
434-
use std::mem::size_of;
434+
use core::mem::size_of;
435435
dbg!(size_of::<Style>());
436436
dbg!(size_of::<StyleDisplay>());
437437
}

0 commit comments

Comments
 (0)