Skip to content

Commit c65fa15

Browse files
roypatdianpopa
authored andcommitted
Run cargo fmt according to CI
Signed-off-by: Patrick Roy <[email protected]>
1 parent 998af4e commit c65fa15

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
//! extensive testing.
2828
//! - Semantic serialization and deserialization is available only for
2929
//! structures.
30-
//!
3130
extern crate bincode;
3231
extern crate crc64;
3332
extern crate serde;
@@ -107,7 +106,7 @@ pub type VersionizeResult<T> = std::result::Result<T, VersionizeError>;
107106
///
108107
/// impl<T> Versionize for MyType<T>
109108
/// where
110-
/// T: Versionize,
109+
/// T: Versionize,
111110
/// {
112111
/// #[inline]
113112
/// fn serialize<W: std::io::Write>(

src/version_map.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
//! assert_eq!(version_map.get_type_version(1, Struct2::type_id()), 1);
4848
//! assert_eq!(version_map.get_type_version(1, State::type_id()), 1);
4949
//!
50-
//!
5150
//! // Check that root version 2 has Struct1 at version 2 and Struct2
5251
//! // at version 1.
5352
//! assert_eq!(version_map.get_type_version(2, Struct1::type_id()), 2);

tests/test.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ fn test_hardcoded_struct_deserialization() {
151151
option_1: Option<u8>,
152152
#[version(start = 3, end = 4, default_fn = "default_vec")]
153153
vec_1: Vec<char>,
154-
#[allow(clippy::box_collection)] // we want to explicitly test Box
154+
#[allow(clippy::box_collection)] // we want to explicitly test Box
155155
box_1: Box<String>,
156156
#[version(start = 3)]
157157
wrapping_1: Wrapping<u32>,
@@ -635,8 +635,7 @@ impl Device {
635635
// Fail if semantic serialization is called for a version >= 2.
636636
assert!(target_version < 2);
637637
self.some_params.push("active".to_owned());
638-
self.some_params
639-
.retain(|x| x.clone() != *"inactive");
638+
self.some_params.retain(|x| x.clone() != *"inactive");
640639
Ok(())
641640
}
642641

0 commit comments

Comments
 (0)