mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
auto clippy fixes
This commit is contained in:
parent
72c85efc83
commit
ef39bad7c6
146 changed files with 750 additions and 1005 deletions
|
@ -60,10 +60,10 @@ pub fn write_compiled_ir<'a>(
|
|||
Err(LoadMonomorphizedError::LoadingProblem(roc_load::LoadingProblem::FormattedReport(
|
||||
report,
|
||||
))) => {
|
||||
println!("{}", report);
|
||||
println!("{report}");
|
||||
panic!();
|
||||
}
|
||||
Err(e) => panic!("{:?}", e),
|
||||
Err(e) => panic!("{e:?}"),
|
||||
};
|
||||
|
||||
use roc_load::MonomorphizedModule;
|
||||
|
@ -146,9 +146,9 @@ fn write_procedures<'a>(
|
|||
let mut procs = procs_strings.iter().peekable();
|
||||
while let Some(proc) = procs.next() {
|
||||
if procs.peek().is_some() {
|
||||
writeln!(writer, "{}", proc)?;
|
||||
writeln!(writer, "{proc}")?;
|
||||
} else {
|
||||
write!(writer, "{}", proc)?;
|
||||
write!(writer, "{proc}")?;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -337,7 +337,7 @@ fn assemble_query_output(
|
|||
|
||||
for (module, source) in other_modules.iter() {
|
||||
writeln!(writer, "## module {module}")?;
|
||||
writeln!(writer, "{}\n", source)?;
|
||||
writeln!(writer, "{source}\n")?;
|
||||
}
|
||||
|
||||
if !other_modules.is_empty() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue