mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Appeasing the clippy
This commit is contained in:
parent
f680ee3c24
commit
b65a69f07e
2 changed files with 4 additions and 6 deletions
|
@ -313,14 +313,14 @@ pub fn canonicalize_expr<'a>(
|
|||
} else {
|
||||
// multiple chars is found
|
||||
let error = roc_problem::can::RuntimeError::MultipleCharsInSingleQuote(region);
|
||||
let answer = Expr::RuntimeError(error.clone());
|
||||
let answer = Expr::RuntimeError(error);
|
||||
|
||||
(answer, Output::default())
|
||||
}
|
||||
} else {
|
||||
// no characters found
|
||||
let error = roc_problem::can::RuntimeError::EmptySingleQuote(region);
|
||||
let answer = Expr::RuntimeError(error.clone());
|
||||
let answer = Expr::RuntimeError(error);
|
||||
|
||||
(answer, Output::default())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue