File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ use rustc_hir::def::CtorKind;
11
11
use rustc_hir:: def_id:: DefId ;
12
12
use rustc_metadata:: rendered_const;
13
13
use rustc_middle:: { bug, ty} ;
14
- use rustc_span:: { Pos , Symbol , kw } ;
14
+ use rustc_span:: { Pos , kw , sym } ;
15
15
use rustdoc_json_types:: * ;
16
16
use thin_vec:: ThinVec ;
17
17
@@ -783,10 +783,7 @@ impl FromClean<clean::Import> for Use {
783
783
use clean:: ImportKind :: * ;
784
784
let ( name, is_glob) = match import. kind {
785
785
Simple ( s) => ( s. to_string ( ) , false ) ,
786
- Glob => (
787
- import. source . path . last_opt ( ) . unwrap_or_else ( || Symbol :: intern ( "*" ) ) . to_string ( ) ,
788
- true ,
789
- ) ,
786
+ Glob => ( import. source . path . last_opt ( ) . unwrap_or ( sym:: asterisk) . to_string ( ) , true ) ,
790
787
} ;
791
788
Use {
792
789
source : import. source . path . whole_name ( ) ,
You can’t perform that action at this time.
0 commit comments