Skip to content

Commit 4a36129

Browse files
committed
chore: fmt + docs
1 parent 218390b commit 4a36129

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ide_assists/src/handlers/add_type_ascription.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::{
99

1010
// Assist: add_type_ascription
1111
//
12-
// Adds `: _` before the assignment operator to prompt the user for a type
12+
// Adds `: _` before the assignment operator to prompt the user for a type.
1313
//
1414
// ```
1515
// fn make<T>() -> T { todo!() }
@@ -28,7 +28,7 @@ pub(crate) fn add_type_ascription(acc: &mut Assists, ctx: &AssistContext) -> Opt
2828
let let_stmt = ctx.find_node_at_offset::<ast::LetStmt>()?;
2929
if let_stmt.colon_token().is_some() {
3030
mark::hit!(add_type_ascription_already_typed);
31-
return None
31+
return None;
3232
}
3333
let type_pos = let_stmt.pat()?.syntax().last_token()?.text_range().end();
3434

0 commit comments

Comments
 (0)