Skip to content

Commit 70d02b0

Browse files
committed
refactor: derive Default as well
1 parent 908fe35 commit 70d02b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

query/src/format/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub trait UdfCodeFormatter: std::fmt::Debug + Send + Sync {
88
}
99

1010
/// Default implementation that returns code unchanged
11-
#[derive(Debug, Clone, Copy)]
11+
#[derive(Debug, Default, Clone, Copy)]
1212
pub struct NoOpFormatter;
1313

1414
impl UdfCodeFormatter for NoOpFormatter {
@@ -18,7 +18,7 @@ impl UdfCodeFormatter for NoOpFormatter {
1818
}
1919

2020
/// Code formatter that strips leading indentation
21-
#[derive(Debug, Clone, Copy)]
21+
#[derive(Debug, Default, Clone, Copy)]
2222
pub struct StripIndentationFormatter;
2323

2424
impl UdfCodeFormatter for StripIndentationFormatter {

0 commit comments

Comments
 (0)