mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
auto clippy fixes
This commit is contained in:
parent
72c85efc83
commit
ef39bad7c6
146 changed files with 750 additions and 1005 deletions
|
@ -136,7 +136,7 @@ impl<'a> fmt::Debug for State<'a> {
|
|||
write!(f, "State {{")?;
|
||||
|
||||
match std::str::from_utf8(self.bytes()) {
|
||||
Ok(string) => write!(f, "\n\tbytes: [utf8] {:?}", string)?,
|
||||
Ok(string) => write!(f, "\n\tbytes: [utf8] {string:?}")?,
|
||||
Err(_) => write!(f, "\n\tbytes: [invalid utf8] {:?}", self.bytes())?,
|
||||
}
|
||||
|
||||
|
@ -151,5 +151,5 @@ fn state_size() {
|
|||
// cache line.
|
||||
let state_size = std::mem::size_of::<State>();
|
||||
let maximum = std::mem::size_of::<usize>() * 8;
|
||||
assert!(state_size <= maximum, "{:?} <= {:?}", state_size, maximum);
|
||||
assert!(state_size <= maximum, "{state_size:?} <= {maximum:?}");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue