Skip to content

Commit 2a8acb8

Browse files
committed
lint
1 parent 6a7827a commit 2a8acb8

File tree

5 files changed

+1
-25
lines changed

5 files changed

+1
-25
lines changed

benches/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fn make_json_negative_testcase() -> String {
3636
.map(|i| format!(r#""b{}": "{}""#, i, "a".repeat(1024)))
3737
.collect::<Vec<_>>()
3838
.join(",");
39-
format!(r#"{{ {} }}"#, kvs)
39+
format!(r"{{ {kvs} }}")
4040
}
4141

4242
fn bench_json_get_str_negative(b: &mut Bencher) {

src/json_get_bool.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ pub(super) struct JsonGetBool {
4040
sorted: Sortedness,
4141
}
4242

43-
impl Default for JsonGetBool {
44-
fn default() -> Self {
45-
Self::new(Sortedness::Unspecified)
46-
}
47-
}
48-
4943
impl JsonGetBool {
5044
pub fn new(sorted: Sortedness) -> Self {
5145
Self {

src/json_get_int.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ pub(super) struct JsonGetInt {
4343
sorted: Sortedness,
4444
}
4545

46-
impl Default for JsonGetInt {
47-
fn default() -> Self {
48-
Self::new(Sortedness::Unspecified)
49-
}
50-
}
51-
5246
impl JsonGetInt {
5347
pub fn new(sorted: Sortedness) -> Self {
5448
Self {

src/json_get_json.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ pub(super) struct JsonGetJson {
3939
sorted: Sortedness,
4040
}
4141

42-
impl Default for JsonGetJson {
43-
fn default() -> Self {
44-
Self::new(Sortedness::Unspecified)
45-
}
46-
}
47-
4842
impl JsonGetJson {
4943
pub fn new(sorted: Sortedness) -> Self {
5044
Self {

src/json_get_str.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ pub(super) struct JsonGetStr {
4040
sorted: Sortedness,
4141
}
4242

43-
impl Default for JsonGetStr {
44-
fn default() -> Self {
45-
Self::new(Sortedness::Unspecified)
46-
}
47-
}
48-
4943
impl JsonGetStr {
5044
pub fn new(sorted: Sortedness) -> Self {
5145
Self {

0 commit comments

Comments
 (0)