From 4a36129c7a018828548e2eddebdd49cdb7d6879d Mon Sep 17 00:00:00 2001 From: Conrad Ludgate Date: Mon, 1 Mar 2021 11:51:52 +0000 Subject: chore: fmt + docs --- crates/ide_assists/src/handlers/add_type_ascription.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ide_assists') diff --git a/crates/ide_assists/src/handlers/add_type_ascription.rs b/crates/ide_assists/src/handlers/add_type_ascription.rs index ea9f249d3..060c326bf 100644 --- a/crates/ide_assists/src/handlers/add_type_ascription.rs +++ b/crates/ide_assists/src/handlers/add_type_ascription.rs @@ -9,7 +9,7 @@ use crate::{ // Assist: add_type_ascription // -// Adds `: _` before the assignment operator to prompt the user for a type +// Adds `: _` before the assignment operator to prompt the user for a type. // // ``` // fn make() -> T { todo!() } @@ -28,7 +28,7 @@ pub(crate) fn add_type_ascription(acc: &mut Assists, ctx: &AssistContext) -> Opt let let_stmt = ctx.find_node_at_offset::()?; if let_stmt.colon_token().is_some() { mark::hit!(add_type_ascription_already_typed); - return None + return None; } let type_pos = let_stmt.pat()?.syntax().last_token()?.text_range().end(); -- cgit v1.2.3