Skip to content

Commit 4b98660

Browse files
committed
Update rc_buffer clippy lint to use String type alias diagnostic item.
1 parent e1bc117 commit 4b98660

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tools/clippy/clippy_lints/src/types/rc_buffer.rs

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ fn match_buffer_type(cx: &LateContext<'_>, qpath: &QPath<'_>) -> Option<&'static
109109
let path = match cx.tcx.get_diagnostic_name(id) {
110110
Some(sym::OsString) => "std::ffi::OsStr",
111111
Some(sym::PathBuf) => "std::path::Path",
112+
Some(sym::String) => "str",
112113
_ if Some(id) == cx.tcx.lang_items().string() => "str",
113114
_ => return None,
114115
};

0 commit comments

Comments
 (0)