File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -236,14 +236,14 @@ impl WasmExport {
236236 function. add_signature ( signature) ;
237237 } else {
238238 let mut func = Func :: from ( mangled_name) ;
239- // Update the description for the first and only signature in the function.
239+ // Update the description for the first and only signature in
240+ // the function.
240241 let signature = func. signatures_mut ( ) . get_mut ( 0 ) . unwrap ( ) ;
241- // It's safe to get a mutable reference to the signature with Rc::get_mut
242- // because the Rc was just crated and there's a single reference to it.
242+ // It's safe to get a mutable reference to the signature with
243+ // Rc::get_mut because the Rc was just crated and there's a
244+ // single reference to it.
243245 let signature = Rc :: get_mut ( signature) . unwrap ( ) ;
244-
245246 signature. description = export. description . clone ( ) ;
246-
247247 functions. insert ( export. name , func) ;
248248 }
249249 }
Original file line number Diff line number Diff line change @@ -120,7 +120,11 @@ pub fn hover(
120120 signature
121121 . args
122122 . iter( )
123- . map( |( name, ty) | format!( "{}: {}" , name, ty_to_string( ty) ) )
123+ . map( |( name, ty) | format!(
124+ "{}: {}" ,
125+ name,
126+ ty_to_string( ty)
127+ ) )
124128 . join( ", " ) ,
125129 ty_to_string( & signature. ret) ,
126130 doc
You can’t perform that action at this time.
0 commit comments