Skip to content

Commit 819c4ff

Browse files
committed
derive default for TransformMetaData
1 parent a34858a commit 819c4ff

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

packages/cubejs-backend-native/src/transpilers.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,14 @@ use serde::Deserialize;
88
use std::collections::{HashMap, HashSet};
99
use std::sync::RwLock;
1010

11-
#[derive(Deserialize, Clone, Debug)]
11+
#[derive(Deserialize, Default, Clone, Debug)]
1212
#[serde(rename_all = "camelCase")]
1313
pub struct TransformMetaData {
1414
pub cube_names: HashSet<String>,
1515
pub cube_symbols: HashMap<String, HashMap<String, bool>>,
1616
pub context_symbols: HashMap<String, String>,
1717
}
1818

19-
impl Default for TransformMetaData {
20-
fn default() -> Self {
21-
Self {
22-
cube_names: HashSet::new(),
23-
cube_symbols: HashMap::new(),
24-
context_symbols: HashMap::new(),
25-
}
26-
}
27-
}
28-
2919
#[derive(Deserialize, Clone, Debug)]
3020
#[serde(rename_all = "camelCase")]
3121
pub struct TransformRequestConfig {

0 commit comments

Comments
 (0)