Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
0xnim committed Nov 6, 2024
1 parent f0717a6 commit 3b5e1d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/derive_macros/src/net/packets/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ pub fn bake_registry(input: TokenStream) -> TokenStream {
"[FERRUMC_MACROS]".bold().blue(),
"Found Packet".white().bold(),
format!("0x{:02X}", packet_id).cyan(),
format!("{}", state).green(),
format!("{}", struct_name).yellow()
state.green(),
struct_name.to_string().yellow()
);

let path = format!(
Expand Down
2 changes: 1 addition & 1 deletion src/lib/utils/color/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl PartialOrd for ColorLevel {
}
}

static COLOR_LEVEL: LazyLock<ColorLevel> = LazyLock::new(|| determine_color_level());
static COLOR_LEVEL: LazyLock<ColorLevel> = LazyLock::new(determine_color_level);

pub fn supports_color() -> bool {
COLOR_LEVEL.to_bool()
Expand Down

0 comments on commit 3b5e1d1

Please sign in to comment.