with selection impl default

This commit is contained in:
Kasper Juul Hermansen 2023-02-05 21:50:34 +01:00
parent 2b49f9c190
commit 9f0021b708
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

View File

@ -1,17 +1,19 @@
use std::{ use std::{collections::HashMap, ops::Add, sync::Arc};
collections::HashMap,
ops::Add,
sync::{Arc},
};
use serde::{Serialize}; use serde::Serialize;
pub fn query() -> Selection { pub fn query() -> Selection {
Selection { Selection::default()
name: None, }
alias: None,
args: None, impl Default for Selection {
prev: None, fn default() -> Self {
Self {
name: Default::default(),
alias: Default::default(),
args: Default::default(),
prev: Default::default(),
}
} }
} }