From 95cfc2b34fc93873daf881b5e1469e7dd68e9521 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Sun, 7 May 2023 15:54:55 -0600 Subject: [PATCH] jsonbuilder: rustfmt Some very minor changes to formatting. --- rust/src/jsonbuilder.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rust/src/jsonbuilder.rs b/rust/src/jsonbuilder.rs index 721e90844a97..abf579aae35b 100644 --- a/rust/src/jsonbuilder.rs +++ b/rust/src/jsonbuilder.rs @@ -159,7 +159,7 @@ impl JsonBuilder { State::None => { debug_validate_fail!("invalid state"); Err(JsonError::InvalidState) - }, + } } } @@ -334,7 +334,7 @@ impl JsonBuilder { State::ArrayFirst => { self.buf.push('"'); for i in 0..val.len() { - self.buf.push(HEX[(val[i] >> 4) as usize] as char); + self.buf.push(HEX[(val[i] >> 4) as usize] as char); self.buf.push(HEX[(val[i] & 0xf) as usize] as char); } self.buf.push('"'); @@ -345,7 +345,7 @@ impl JsonBuilder { self.buf.push(','); self.buf.push('"'); for i in 0..val.len() { - self.buf.push(HEX[(val[i] >> 4) as usize] as char); + self.buf.push(HEX[(val[i] >> 4) as usize] as char); self.buf.push(HEX[(val[i] & 0xf) as usize] as char); } self.buf.push('"'); @@ -522,7 +522,7 @@ impl JsonBuilder { self.buf.push_str(key); self.buf.push_str("\":\""); for i in 0..val.len() { - self.buf.push(HEX[(val[i] >> 4) as usize] as char); + self.buf.push(HEX[(val[i] >> 4) as usize] as char); self.buf.push(HEX[(val[i] & 0xf) as usize] as char); } self.buf.push('"');