diff options
Diffstat (limited to 'crates/ide/src/diagnostics/fixes.rs')
-rw-r--r-- | crates/ide/src/diagnostics/fixes.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ide/src/diagnostics/fixes.rs b/crates/ide/src/diagnostics/fixes.rs index 92b3f5a2d..258ac6974 100644 --- a/crates/ide/src/diagnostics/fixes.rs +++ b/crates/ide/src/diagnostics/fixes.rs | |||
@@ -14,18 +14,18 @@ use ide_db::RootDatabase; | |||
14 | 14 | ||
15 | use crate::Assist; | 15 | use crate::Assist; |
16 | 16 | ||
17 | /// A [Diagnostic] that potentially has a fix available. | 17 | /// A [Diagnostic] that potentially has some fixes available. |
18 | /// | 18 | /// |
19 | /// [Diagnostic]: hir::diagnostics::Diagnostic | 19 | /// [Diagnostic]: hir::diagnostics::Diagnostic |
20 | pub(crate) trait DiagnosticWithFix: Diagnostic { | 20 | pub(crate) trait DiagnosticWithFixes: Diagnostic { |
21 | /// `resolve` determines if the diagnostic should fill in the `edit` field | 21 | /// `resolve` determines if the diagnostic should fill in the `edit` field |
22 | /// of the assist. | 22 | /// of the assist. |
23 | /// | 23 | /// |
24 | /// If `resolve` is false, the edit will be computed later, on demand, and | 24 | /// If `resolve` is false, the edit will be computed later, on demand, and |
25 | /// can be omitted. | 25 | /// can be omitted. |
26 | fn fix( | 26 | fn fixes( |
27 | &self, | 27 | &self, |
28 | sema: &Semantics<RootDatabase>, | 28 | sema: &Semantics<RootDatabase>, |
29 | _resolve: &AssistResolveStrategy, | 29 | _resolve: &AssistResolveStrategy, |
30 | ) -> Option<Assist>; | 30 | ) -> Option<Vec<Assist>>; |
31 | } | 31 | } |