mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
auto clippy fixes
This commit is contained in:
parent
72c85efc83
commit
ef39bad7c6
146 changed files with 750 additions and 1005 deletions
|
@ -75,13 +75,12 @@ pub fn repl_eval(input: &str) -> Out {
|
|||
|
||||
// Remove the initial instructions from the output.
|
||||
|
||||
let expected_instructions = format!("{}{}", WELCOME_MESSAGE, SHORT_INSTRUCTIONS);
|
||||
let expected_instructions = format!("{WELCOME_MESSAGE}{SHORT_INSTRUCTIONS}");
|
||||
let stdout = String::from_utf8(output.stdout).unwrap();
|
||||
|
||||
assert!(
|
||||
stdout.starts_with(&expected_instructions),
|
||||
"Unexpected repl output: {}",
|
||||
stdout
|
||||
"Unexpected repl output: {stdout}"
|
||||
);
|
||||
|
||||
let (_, answer) = stdout.split_at(expected_instructions.len());
|
||||
|
@ -101,8 +100,7 @@ pub fn repl_eval(input: &str) -> Out {
|
|||
|
||||
assert!(
|
||||
answer.ends_with(&expected_after_answer),
|
||||
"Unexpected repl output after answer: {}",
|
||||
answer
|
||||
"Unexpected repl output after answer: {answer}"
|
||||
);
|
||||
|
||||
// Use [1..] to trim the leading '\n'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue