diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_assists/src/handlers/add_custom_impl.rs | 2 | ||||
-rw-r--r-- | crates/ra_assists/src/handlers/add_explicit_type.rs | 2 | ||||
-rw-r--r-- | crates/ra_flycheck/src/lib.rs | 2 | ||||
-rw-r--r-- | crates/ra_syntax/src/validation.rs | 2 |
4 files changed, 4 insertions, 4 deletions
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< | |||
49 | let start_offset = annotated.syntax().parent()?.text_range().end(); | 49 | let start_offset = annotated.syntax().parent()?.text_range().end(); |
50 | 50 | ||
51 | let label = | 51 | 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); |
53 | 53 | ||
54 | let target = attr.syntax().text_range(); | 54 | let target = attr.syntax().text_range(); |
55 | acc.add(AssistId("add_custom_impl"), label, target, |edit| { | 55 | 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 | |||
61 | let inferred_type = ty.display_source_code(ctx.db, module.into()).ok()?; | 61 | let inferred_type = ty.display_source_code(ctx.db, module.into()).ok()?; |
62 | acc.add( | 62 | acc.add( |
63 | AssistId("add_explicit_type"), | 63 | AssistId("add_explicit_type"), |
64 | format!("Insert explicit type '{}'", inferred_type), | 64 | format!("Insert explicit type `{}`", inferred_type), |
65 | pat_range, | 65 | pat_range, |
66 | |builder| match ascribed_ty { | 66 | |builder| match ascribed_ty { |
67 | Some(ascribed_ty) => { | 67 | Some(ascribed_ty) => { |
diff --git a/crates/ra_flycheck/src/lib.rs b/crates/ra_flycheck/src/lib.rs index 24af75c95..d5efb6ab3 100644 --- a/crates/ra_flycheck/src/lib.rs +++ b/crates/ra_flycheck/src/lib.rs | |||
@@ -157,7 +157,7 @@ impl FlycheckThread { | |||
157 | CheckEvent::Begin => { | 157 | CheckEvent::Begin => { |
158 | task_send | 158 | task_send |
159 | .send(CheckTask::Status(WorkDoneProgress::Begin(WorkDoneProgressBegin { | 159 | .send(CheckTask::Status(WorkDoneProgress::Begin(WorkDoneProgressBegin { |
160 | title: "Running 'cargo check'".to_string(), | 160 | title: "Running `cargo check`".to_string(), |
161 | cancellable: Some(false), | 161 | cancellable: Some(false), |
162 | message: None, | 162 | message: None, |
163 | percentage: None, | 163 | percentage: None, |
diff --git a/crates/ra_syntax/src/validation.rs b/crates/ra_syntax/src/validation.rs index e075cd801..d68cf0a82 100644 --- a/crates/ra_syntax/src/validation.rs +++ b/crates/ra_syntax/src/validation.rs | |||
@@ -54,7 +54,7 @@ fn rustc_unescape_error_to_string(err: unescape::EscapeError) -> &'static str { | |||
54 | "Unicode escape must not be empty" | 54 | "Unicode escape must not be empty" |
55 | } | 55 | } |
56 | EE::UnclosedUnicodeEscape => { | 56 | EE::UnclosedUnicodeEscape => { |
57 | "Missing '}' to terminate the unicode escape" | 57 | "Missing `}` to terminate the unicode escape" |
58 | } | 58 | } |
59 | EE::LeadingUnderscoreUnicodeEscape => { | 59 | EE::LeadingUnderscoreUnicodeEscape => { |
60 | "Unicode escape code must not begin with an underscore" | 60 | "Unicode escape code must not begin with an underscore" |