Skip to content

Commit 2d0a949

Browse files
committed
Use back ticks instead of single quotes around code
1 parent 530a35f commit 2d0a949

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

crates/ra_assists/src/handlers/add_custom_impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub(crate) fn add_custom_impl(acc: &mut Assists, ctx: &AssistContext) -> Option<
4949
let start_offset = annotated.syntax().parent()?.text_range().end();
5050

5151
let label =
52-
format!("Add custom impl '{}' for '{}'", trait_token.text().as_str(), annotated_name);
52+
format!("Add custom impl `{}` for `{}`", trait_token.text().as_str(), annotated_name);
5353

5454
let target = attr.syntax().text_range();
5555
acc.add(AssistId("add_custom_impl"), label, target, |edit| {

crates/ra_assists/src/handlers/add_explicit_type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub(crate) fn add_explicit_type(acc: &mut Assists, ctx: &AssistContext) -> Optio
6161
let inferred_type = ty.display_source_code(ctx.db, module.into()).ok()?;
6262
acc.add(
6363
AssistId("add_explicit_type"),
64-
format!("Insert explicit type '{}'", inferred_type),
64+
format!("Insert explicit type `{}`", inferred_type),
6565
pat_range,
6666
|builder| match ascribed_ty {
6767
Some(ascribed_ty) => {

crates/ra_flycheck/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ impl FlycheckThread {
157157
CheckEvent::Begin => {
158158
task_send
159159
.send(CheckTask::Status(WorkDoneProgress::Begin(WorkDoneProgressBegin {
160-
title: "Running 'cargo check'".to_string(),
160+
title: "Running `cargo check`".to_string(),
161161
cancellable: Some(false),
162162
message: None,
163163
percentage: None,

crates/ra_syntax/src/validation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fn rustc_unescape_error_to_string(err: unescape::EscapeError) -> &'static str {
5454
"Unicode escape must not be empty"
5555
}
5656
EE::UnclosedUnicodeEscape => {
57-
"Missing '}' to terminate the unicode escape"
57+
"Missing `}` to terminate the unicode escape"
5858
}
5959
EE::LeadingUnderscoreUnicodeEscape => {
6060
"Unicode escape code must not begin with an underscore"

0 commit comments

Comments
 (0)