From 7667aa6033b1a0307279d0a153ce0e90437b0b66 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Tue, 24 Mar 2020 03:32:06 +0800 Subject: Refactoring a bit --- crates/ra_hir_expand/src/builtin_derive.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crates/ra_hir_expand/src') diff --git a/crates/ra_hir_expand/src/builtin_derive.rs b/crates/ra_hir_expand/src/builtin_derive.rs index 7f753bbca..79aea5806 100644 --- a/crates/ra_hir_expand/src/builtin_derive.rs +++ b/crates/ra_hir_expand/src/builtin_derive.rs @@ -229,7 +229,7 @@ fn partial_ord_expand( mod tests { use super::*; use crate::{test_db::TestDB, AstId, MacroCallId, MacroCallKind, MacroCallLoc}; - use name::Name; + use name::{known, Name}; use ra_db::{fixture::WithFixture, SourceDatabase}; fn expand_builtin_derive(s: &str, name: Name) -> String { @@ -261,7 +261,7 @@ mod tests { #[derive(Copy)] struct Foo; "#, - name::known::Copy, + known::Copy, ); assert_eq!(expanded, "impl< >std::marker::CopyforFoo< >{}"); @@ -274,7 +274,7 @@ mod tests { #[derive(Copy)] struct Foo; "#, - name::known::Copy, + known::Copy, ); assert_eq!( @@ -290,7 +290,7 @@ mod tests { #[derive(Copy)] struct Foo; "#, - name::known::Copy, + known::Copy, ); // We currently just ignore lifetimes @@ -308,7 +308,7 @@ mod tests { #[derive(Clone)] struct Foo; "#, - name::known::Clone, + known::Clone, ); assert_eq!( -- cgit v1.2.3