rust-clippy/tests/ui/path_ends_with_ext.stderr

18 lines
690 B
Text
Raw Normal View History

2023-09-11 20:46:15 +00:00
error: this looks like a failed attempt at checking for the file extension
2024-02-17 12:16:29 +00:00
--> tests/ui/path_ends_with_ext.rs:11:5
2023-09-11 20:46:15 +00:00
|
LL | path.ends_with(".md");
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `path.extension().is_some_and(|ext| ext == "md")`
|
= note: `-D clippy::path-ends-with-ext` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::path_ends_with_ext)]`
error: this looks like a failed attempt at checking for the file extension
2024-02-17 12:16:29 +00:00
--> tests/ui/path_ends_with_ext.rs:32:5
2023-09-11 20:46:15 +00:00
|
LL | path.ends_with(".md")
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `path.extension().map_or(false, |ext| ext == "md")`
error: aborting due to 2 previous errors