File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -620,7 +620,7 @@ impl FromClean<clean::Type> for Type {
620
620
impl FromClean < clean:: Path > for Path {
621
621
fn from_clean ( path : clean:: Path , renderer : & JsonRenderer < ' _ > ) -> Path {
622
622
Path {
623
- name : path. whole_name ( ) ,
623
+ name : path. last_opt ( ) . map_or ( String :: from ( "" ) , |s| String :: from ( s . as_str ( ) ) ) ,
624
624
id : renderer. id_from_item_default ( path. def_id ( ) . into ( ) ) ,
625
625
args : path. segments . last ( ) . map ( |args| Box :: new ( args. clone ( ) . args . into_json ( renderer) ) ) ,
626
626
}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ mod secret {
6
6
}
7
7
8
8
//@ has "$.index[*][?(@.name=='get_secret')].inner.function"
9
- //@ is "$.index[*][?(@.name=='get_secret')].inner.function.sig.output.resolved_path.name" \"secret:: Secret\"
9
+ //@ is "$.index[*][?(@.name=='get_secret')].inner.function.sig.output.resolved_path.name" \"Secret\"
10
10
pub fn get_secret ( ) -> secret:: Secret {
11
11
secret:: Secret
12
12
}
You can’t perform that action at this time.
0 commit comments