Skip to content

Commit eddd17d

Browse files
committed
appease clippy
1 parent 095306d commit eddd17d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

cli/util/path.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,14 @@ pub fn relative_specifier_path_for_display(
117117
) -> String {
118118
if to.scheme() == "file" && from.scheme() == "file" {
119119
let relative_specifier = relative_specifier(from, to)
120-
.map(|s| Cow::Owned(s))
120+
.map(Cow::Owned)
121121
.unwrap_or_else(|| Cow::Borrowed(to.as_str()));
122122
let relative_specifier = if relative_specifier.starts_with("../../../") {
123123
to.as_str()
124124
} else {
125125
relative_specifier.trim_start_matches("./")
126126
};
127-
to_percent_decoded_str(&relative_specifier)
127+
to_percent_decoded_str(relative_specifier)
128128
} else {
129129
to_percent_decoded_str(to.as_str())
130130
}

tests/integration/compile_tests.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,9 @@ testing[WILDCARD]this
823823
.args("compile --output binary main.ts")
824824
.run()
825825
.assert_exit_code(0)
826-
.assert_matches_text("Check main.ts\nCompile main.ts to binary[WILDLINE]\n");
826+
.assert_matches_text(
827+
"Check main.ts\nCompile main.ts to binary[WILDLINE]\n",
828+
);
827829

828830
context
829831
.new_command()

0 commit comments

Comments
 (0)