Skip to content

Commit 4ffed93

Browse files
committed
chore: remove default traits
1 parent d8a807a commit 4ffed93

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

src/app.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ use crate::{
2525

2626
#[component]
2727
pub fn App() -> impl IntoView {
28-
provide_context(ProjectsStore::default());
29-
provide_context(QueriesStore::default());
28+
provide_context(ProjectsStore::new());
29+
provide_context(QueriesStore::new());
3030
provide_context(RwSignal::new(QueryTableLayout::Grid));
3131
provide_context::<QueryPerformanceContext>(
3232
RwSignal::new(VecDeque::<QueryPerformanceAtom>::new()),

src/store/projects.rs

-6
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ use crate::invoke::{Invoke, InvokeProjectDbDeleteArgs, InvokeProjectDbInsertArgs
1212
#[derive(Clone, Copy, Debug)]
1313
pub struct ProjectsStore(pub RwSignal<BTreeVecStore>);
1414

15-
impl Default for ProjectsStore {
16-
fn default() -> Self {
17-
Self::new()
18-
}
19-
}
20-
2115
impl Deref for ProjectsStore {
2216
type Target = RwSignal<BTreeVecStore>;
2317

src/store/queries.rs

-5
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ use super::tabs::TabsStore;
1414
#[derive(Clone, Copy, Debug)]
1515
pub struct QueriesStore(pub RwSignal<BTreeStore>);
1616

17-
impl Default for QueriesStore {
18-
fn default() -> Self {
19-
Self::new()
20-
}
21-
}
2217

2318
impl Deref for QueriesStore {
2419
type Target = RwSignal<BTreeStore>;

0 commit comments

Comments
 (0)