Skip to content

Commit de25207

Browse files
committed
style: run cargo fmt.
1 parent 3f52651 commit de25207

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

lib/src/wasm/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

ls/src/features/hover.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)