mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
auto clippy fixes
This commit is contained in:
parent
72c85efc83
commit
ef39bad7c6
146 changed files with 750 additions and 1005 deletions
|
@ -117,7 +117,7 @@ where
|
|||
}
|
||||
|
||||
if debug() {
|
||||
for (i, c) in (format!("{:?}", symbol)).chars().take(25).enumerate() {
|
||||
for (i, c) in (format!("{symbol:?}")).chars().take(25).enumerate() {
|
||||
name_bytes[25 + i] = c as u8;
|
||||
}
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ fn bytes_as_ascii(bytes: &[u8]) -> String {
|
|||
let mut buf = String::new();
|
||||
|
||||
for byte in bytes {
|
||||
write!(buf, "{:02X}", byte).unwrap();
|
||||
write!(buf, "{byte:02X}").unwrap();
|
||||
}
|
||||
|
||||
buf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue