]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/disallowed_types.rs
Auto merge of #8901 - Jarcho:sharing_code, r=dswij
[rust.git] / clippy_lints / src / disallowed_types.rs
index ea4b49b46fe9f6d6e5ca9e6f7e8ee6d3e8f4112b..14f89edce615db9993d811d34e6e8d42d62f8b14 100644 (file)
@@ -96,7 +96,7 @@ fn check_crate(&mut self, cx: &LateContext<'_>) {
                 ),
             };
             let segs: Vec<_> = path.split("::").collect();
-            match clippy_utils::path_to_res(cx, &segs) {
+            match clippy_utils::def_path_res(cx, &segs) {
                 Res::Def(_, id) => {
                     self.def_ids.insert(id, reason);
                 },