diff --git a/compiler/qsc_linter/src/lints/hir.rs b/compiler/qsc_linter/src/lints/hir.rs index 2e10416919..8c6fb06067 100644 --- a/compiler/qsc_linter/src/lints/hir.rs +++ b/compiler/qsc_linter/src/lints/hir.rs @@ -12,7 +12,7 @@ use crate::linter::hir::declare_hir_lints; use super::lint; declare_hir_lints! { - (NeedlessOperation, LintLevel::Warn, "unnecessary operation declaration", "convert to function") + (NeedlessOperation, LintLevel::Warn, "operation does not contain any quantum operations", "this callable can be declared as a function instead") } /// Helper to check if an operation has desired operation characteristics