Skip to content

Commit c06b6bf

Browse files
committed
style: derive Default for test helpers
1 parent b40b807 commit c06b6bf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/common.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ impl TestClientRecorder {
2727
}
2828
}
2929

30+
impl Default for TestClientRecorder {
31+
fn default() -> Self {
32+
Self::new()
33+
}
34+
}
35+
3036
#[async_trait::async_trait]
3137
impl sysdig_lsp::app::LSPClient for TestClientRecorder {
3238
async fn show_message<M: std::fmt::Display + Send>(
@@ -127,3 +133,9 @@ impl TestSetup {
127133
}
128134
}
129135
}
136+
137+
impl Default for TestSetup {
138+
fn default() -> Self {
139+
Self::new()
140+
}
141+
}

0 commit comments

Comments
 (0)