Skip to content

Commit 2364e75

Browse files
fix clippy
1 parent f10e020 commit 2364e75

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/utils/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ mod json_object;
66
mod plurals;
77
mod profile;
88

9-
pub use duration::parse_duration_to_seconds;
109
pub use fs_atomic::write_text_atomic;
1110
pub use git::GitRepo;
1211
pub(crate) use ids::new_uuid_id;

tests/datasets.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,16 @@ struct MockDatasetSnapshot {
114114
created: String,
115115
}
116116

117+
type MockDatasetRows = BTreeMap<String, Map<String, Value>>;
118+
type MockDatasetRowsByDataset = BTreeMap<String, MockDatasetRows>;
119+
117120
#[derive(Debug)]
118121
struct MockServerState {
119122
requests: Mutex<Vec<String>>,
120123
projects: Mutex<Vec<MockProject>>,
121124
datasets: Mutex<Vec<MockDataset>>,
122125
dataset_snapshots: Mutex<Vec<MockDatasetSnapshot>>,
123-
dataset_rows: Mutex<BTreeMap<String, BTreeMap<String, Map<String, Value>>>>,
126+
dataset_rows: Mutex<MockDatasetRowsByDataset>,
124127
btql_dataset_id: Mutex<Option<String>>,
125128
}
126129

0 commit comments

Comments
 (0)