summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/path_ends_with_ext.stderr
blob: a73ab4d08e9c5d8e1796df90521b1fa8c2496501 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: this looks like a failed attempt at checking for the file extension
  --> $DIR/path_ends_with_ext.rs:11:5
   |
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
  --> $DIR/path_ends_with_ext.rs:32:5
   |
LL |     path.ends_with(".md")
   |     ^^^^^^^^^^^^^^^^^^^^^ help: try: `path.extension().map_or(false, |ext| ext == "md")`

error: aborting due to 2 previous errors