diff options
Diffstat (limited to 'tvix/eval/src')
-rw-r--r-- | tvix/eval/src/warnings.rs | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/tvix/eval/src/warnings.rs b/tvix/eval/src/warnings.rs index 26efd24d1ed2..5395fc20b9c8 100644 --- a/tvix/eval/src/warnings.rs +++ b/tvix/eval/src/warnings.rs @@ -68,7 +68,8 @@ impl EvalWarning { } WarningKind::UselessInherit => { - format!("inherit does nothing (this variable already exists with the same value)") + "inherit does nothing (this variable already exists with the same value)" + .to_string() } WarningKind::UnusedBinding => { @@ -94,21 +95,13 @@ impl EvalWarning { format!("useless operation on boolean: {}", msg) } - WarningKind::DeadCode => { - format!("this code will never be executed") - } + WarningKind::DeadCode => "this code will never be executed".to_string(), - WarningKind::EmptyInherit => { - format!("this `inherit` statement is empty") - } + WarningKind::EmptyInherit => "this `inherit` statement is empty".to_string(), - WarningKind::EmptyLet => { - format!("this `let`-expression contains no bindings") - } + WarningKind::EmptyLet => "this `let`-expression contains no bindings".to_string(), - WarningKind::UselessParens => { - format!("these parenthesis can be removed") - } + WarningKind::UselessParens => "these parenthesis can be removed".to_string(), WarningKind::NotImplemented(what) => { format!("feature not yet implemented in tvix: {}", what) |