Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
god clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Jun 30, 2023
1 parent 806fb96 commit 4560456
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rome_diagnostics/src/diagnostic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ pub(super) enum DiagnosticTag {
}

bitflags! {
#[derive(Debug, Copy, Clone)]
#[derive(Default, Debug, Copy, Clone, Eq, PartialEq)]
pub struct DiagnosticTags: u8 {
/// This diagnostic has a fix suggestion.
const FIXABLE = 1 << DiagnosticTag::Fixable as u8;
Expand Down
5 changes: 5 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ _default:
alias f := format
alias t := test
alias r := ready
alias l := lint


# Installs the tools needed to develop with Rome
Expand Down Expand Up @@ -89,6 +90,10 @@ test-lintrule name:
cargo test -p rome_js_analyze -- {{snakecase(name)}}
cargo test -p rome_json_analyze -- {{snakecase(name)}}

# Alias for `cargo lint`, it runs clippy on the whole codebase
lint:
cargo lint

# When you finished coding, run this command to run the same commands in the CI.
ready:
git diff --exit-code --quiet
Expand Down

0 comments on commit 4560456

Please sign in to comment.