We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
CString
1 parent 6eaec56 commit f62c84eCopy full SHA for f62c84e
src/tools/clippy/clippy_utils/src/paths.rs
@@ -23,7 +23,7 @@ pub const BTREEMAP_ENTRY: [&str; 6] = ["alloc", "collections", "btree", "map", "
23
pub const BTREEMAP_INSERT: [&str; 6] = ["alloc", "collections", "btree", "map", "BTreeMap", "insert"];
24
pub const CLONE_TRAIT_METHOD: [&str; 4] = ["core", "clone", "Clone", "clone"];
25
pub const COW: [&str; 3] = ["alloc", "borrow", "Cow"];
26
-pub const CSTRING_AS_C_STR: [&str; 5] = ["std", "ffi", "c_str", "CString", "as_c_str"];
+pub const CSTRING_AS_C_STR: [&str; 5] = ["alloc", "ffi", "c_str", "CString", "as_c_str"];
27
pub const DEFAULT_TRAIT_METHOD: [&str; 4] = ["core", "default", "Default", "default"];
28
pub const DEREF_MUT_TRAIT_METHOD: [&str; 5] = ["core", "ops", "deref", "DerefMut", "deref_mut"];
29
/// Preferably use the diagnostic item `sym::deref_method` where possible
0 commit comments