Skip to content

Commit

Permalink
chore: enable clippy::declare_interior_mutable_const
Browse files Browse the repository at this point in the history
This patch re-enables `clippy::declare_interior_mutable_const` and
addresses the issues related to the lint.
  • Loading branch information
rockstar committed Mar 1, 2024
1 parent 96c2d78 commit 64e11ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![allow(
clippy::declare_interior_mutable_const,
clippy::borrow_interior_mutable_const,
clippy::module_inception,
clippy::result_large_err,
Expand Down
4 changes: 2 additions & 2 deletions src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ where

struct MessageAsString(String);

const WARNING: Lazy<StyledObject<Emoji<'static, 'static>>> = Lazy::new(|| {
static WARNING: Lazy<StyledObject<Emoji<'static, 'static>>> = Lazy::new(|| {
Style::new()
.yellow()
.bold()
.for_stderr()
.apply_to(Emoji("⚠️ Warning:", "Warning:"))
});

const ERROR: Lazy<StyledObject<Emoji<'static, 'static>>> = Lazy::new(|| {
static ERROR: Lazy<StyledObject<Emoji<'static, 'static>>> = Lazy::new(|| {
Style::new()
.red()
.bold()
Expand Down

0 comments on commit 64e11ac

Please sign in to comment.