From 2d0a9492362e47c51f389d586a43c81328be4670 Mon Sep 17 00:00:00 2001 From: Trevor Spiteri Date: Thu, 14 May 2020 01:06:07 +0200 Subject: Use back ticks instead of single quotes around code --- crates/ra_assists/src/handlers/add_custom_impl.rs | 2 +- crates/ra_assists/src/handlers/add_explicit_type.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_assists/src/handlers') diff --git a/crates/ra_assists/src/handlers/add_custom_impl.rs b/crates/ra_assists/src/handlers/add_custom_impl.rs index 795a225a4..2baeb8607 100644 --- a/crates/ra_assists/src/handlers/add_custom_impl.rs +++ b/crates/ra_assists/src/handlers/add_custom_impl.rs @@ -49,7 +49,7 @@ pub(crate) fn add_custom_impl(acc: &mut Assists, ctx: &AssistContext) -> Option< let start_offset = annotated.syntax().parent()?.text_range().end(); let label = - format!("Add custom impl '{}' for '{}'", trait_token.text().as_str(), annotated_name); + format!("Add custom impl `{}` for `{}`", trait_token.text().as_str(), annotated_name); let target = attr.syntax().text_range(); acc.add(AssistId("add_custom_impl"), label, target, |edit| { diff --git a/crates/ra_assists/src/handlers/add_explicit_type.rs b/crates/ra_assists/src/handlers/add_explicit_type.rs index 7ced00626..0c7d5e355 100644 --- a/crates/ra_assists/src/handlers/add_explicit_type.rs +++ b/crates/ra_assists/src/handlers/add_explicit_type.rs @@ -61,7 +61,7 @@ pub(crate) fn add_explicit_type(acc: &mut Assists, ctx: &AssistContext) -> Optio let inferred_type = ty.display_source_code(ctx.db, module.into()).ok()?; acc.add( AssistId("add_explicit_type"), - format!("Insert explicit type '{}'", inferred_type), + format!("Insert explicit type `{}`", inferred_type), pat_range, |builder| match ascribed_ty { Some(ascribed_ty) => { -- cgit v1.2.3