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

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Dec 5, 2022
1 parent cc36905 commit 7eef70c
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions crates/rome_service/src/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,29 +456,23 @@ mod test {
fn file_ignored() {
snap_diagnostic(
"file_ignored",
RomeError::FileIgnored("example.js".to_string())
.with_file_path("example.js")
.into(),
RomeError::FileIgnored("example.js".to_string()).with_file_path("example.js"),
)
}

#[test]
fn cant_read_directory() {
snap_diagnostic(
"cant_read_directory",
RomeError::CantReadDirectory("example/".to_string())
.with_file_path("example.js")
.into(),
RomeError::CantReadDirectory("example/".to_string()).with_file_path("example.js"),
)
}

#[test]
fn cant_read_file() {
snap_diagnostic(
"cant_read_file",
RomeError::CantReadFile("example.js".to_string())
.with_file_path("example.js")
.into(),
RomeError::CantReadFile("example.js".to_string()).with_file_path("example.js"),
)
}

Expand Down

0 comments on commit 7eef70c

Please sign in to comment.