Use back ticks instead of single quotes around code
This commit is contained in:
parent
530a35f3f9
commit
2d0a949236
@ -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| {
|
||||
|
@ -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) => {
|
||||
|
@ -157,7 +157,7 @@ impl FlycheckThread {
|
||||
CheckEvent::Begin => {
|
||||
task_send
|
||||
.send(CheckTask::Status(WorkDoneProgress::Begin(WorkDoneProgressBegin {
|
||||
title: "Running 'cargo check'".to_string(),
|
||||
title: "Running `cargo check`".to_string(),
|
||||
cancellable: Some(false),
|
||||
message: None,
|
||||
percentage: None,
|
||||
|
@ -54,7 +54,7 @@ fn rustc_unescape_error_to_string(err: unescape::EscapeError) -> &'static str {
|
||||
"Unicode escape must not be empty"
|
||||
}
|
||||
EE::UnclosedUnicodeEscape => {
|
||||
"Missing '}' to terminate the unicode escape"
|
||||
"Missing `}` to terminate the unicode escape"
|
||||
}
|
||||
EE::LeadingUnderscoreUnicodeEscape => {
|
||||
"Unicode escape code must not begin with an underscore"
|
||||
|
Loading…
x
Reference in New Issue
Block a user