Skip to content

Commit 2435cbd

Browse files
committed
style(binary_encoding): apply cargo fmt
1 parent aa96879 commit 2435cbd

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

src/binary_encoding.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl Decoder for KeyDecoder {
137137
return Ok(true);
138138
}
139139
*key_as_bytes = (*key_as_bytes_slice).to_vec();
140-
},
140+
}
141141
State::Done(..) => return Ok(false),
142142
State::Errored => panic!("call to push_bytes() after decoder errored"),
143143
}
@@ -161,14 +161,11 @@ impl Decoder for KeyDecoder {
161161

162162
let data = (*type_and_data).to_vec();
163163

164-
self.state = State::Done(Key {
165-
type_value: key_type_u8,
166-
key: data,
167-
});
168-
},
164+
self.state = State::Done(Key { type_value: key_type_u8, key: data });
165+
}
169166
State::Done(..) => {
170167
return Ok(false);
171-
},
168+
}
172169
State::Errored => panic!("call to push_bytes() after decoder errored"),
173170
}
174171
}
@@ -203,9 +200,7 @@ impl Decoder for KeyDecoder {
203200

204201
#[cfg(test)]
205202
mod tests {
206-
use super::{
207-
Key, KeyDecoder, Vec,
208-
};
203+
use super::{Key, KeyDecoder, Vec};
209204
use encoding::{Decodable, Decoder, Encodable, Encoder};
210205

211206
fn encode_key(key: Key) -> Vec<u8> {

0 commit comments

Comments
 (0)