Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit b515064

Browse files
Correctly handle char paths
1 parent 34b1765 commit b515064

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/utils/internal_lints/invalid_paths.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ pub fn check_path(cx: &LateContext<'_>, path: &[&str]) -> bool {
7373
SimplifiedType::Slice,
7474
SimplifiedType::Str,
7575
SimplifiedType::Bool,
76+
SimplifiedType::Char,
7677
]
7778
.iter()
7879
.flat_map(|&ty| cx.tcx.incoherent_impls(ty).iter())

0 commit comments

Comments
 (0)