Skip to content

Commit 1fefbf8

Browse files
committed
lint
1 parent 844091f commit 1fefbf8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/specs_test.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ impl Spec {
449449
serde_json::to_string_pretty(&meta_value).unwrap(),
450450
),
451451
)
452+
.as_str()
452453
.to_string(),
453454
);
454455
}
@@ -566,10 +567,6 @@ impl SpecFileContent {
566567
}
567568
}
568569

569-
fn to_string(&self) -> String {
570-
self.as_str().to_string()
571-
}
572-
573570
fn len(&self) -> usize {
574571
match self {
575572
Self::Inline(s) => s.len(),

0 commit comments

Comments
 (0)