Skip to content

Commit cbb293c

Browse files
committed
chore: Use or remove unused code
1 parent 54b7b50 commit cbb293c

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

src/drisl.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ mod tests {
4545
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
4646
struct Struct<'a> {
4747
tuple_struct: TupleStruct,
48+
unit_struct: UnitStruct,
4849
tuple: (String, f32, f64),
4950
map: BTreeMap<String, String>,
5051
#[serde(with = "serde_bytes")]
@@ -75,6 +76,7 @@ mod tests {
7576
let array = vec!["one".to_string(), "two".to_string(), "three".to_string()];
7677
let data = Struct {
7778
tuple_struct,
79+
unit_struct: UnitStruct,
7880
tuple,
7981
map,
8082
bytes,

tests/enum.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,3 @@ fn test_variable_length_array_error() {
8585
let err = value.unwrap_err();
8686
assert!(matches!(err, DecodeError::IndefiniteSize), "{err:?}");
8787
}
88-
89-
#[derive(Serialize, Deserialize, PartialEq, Debug)]
90-
enum Bar {
91-
Empty,
92-
Number(i32),
93-
Flag(String, bool),
94-
Point { x: i32, y: i32 },
95-
}

0 commit comments

Comments
 (0)