diff options
author | Jimmy Miller <jimmy.miller@shopify.com> | 2022-09-30 10:14:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-30 11:14:55 -0400 |
commit | 31461c7e0eab4963ccc8649ea8ebf27979132c0c (patch) | |
tree | 69a0378ba20e47c085928ede356431a65d8e60c3 /yjit/src/backend/ir.rs | |
parent | ad651925e365ca18645f05b5e9b2eca9cd5721bc (diff) | |
download | ruby-31461c7e0eab4963ccc8649ea8ebf27979132c0c.tar.gz |
A bunch of clippy auto fixes for yjit (#6476)
Diffstat (limited to 'yjit/src/backend/ir.rs')
-rw-r--r-- | yjit/src/backend/ir.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yjit/src/backend/ir.rs b/yjit/src/backend/ir.rs index 609ca8eaf4..dfdc1deb0d 100644 --- a/yjit/src/backend/ir.rs +++ b/yjit/src/backend/ir.rs @@ -912,7 +912,7 @@ impl Assembler /// Create a new label instance that we can jump to pub fn new_label(&mut self, name: &str) -> Target { - assert!(!name.contains(" "), "use underscores in label names, not spaces"); + assert!(!name.contains(' '), "use underscores in label names, not spaces"); let label_idx = self.label_names.len(); self.label_names.push(name.to_string()); @@ -1232,10 +1232,10 @@ impl AssemblerLookbackIterator { impl fmt::Debug for Assembler { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - write!(fmt, "Assembler\n")?; + writeln!(fmt, "Assembler")?; for (idx, insn) in self.insns.iter().enumerate() { - write!(fmt, " {idx:03} {insn:?}\n")?; + writeln!(fmt, " {idx:03} {insn:?}")?; } Ok(()) |