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::{
collections::HashMap,
ops::Add,
sync::{Arc},
};
use std::{collections::HashMap, ops::Add, sync::Arc};
use serde::{Serialize};
use serde::Serialize;
pub fn query() -> Selection {
Selection {
name: None,
alias: None,
args: None,
prev: None,
Selection::default()
}
impl Default for Selection {
fn default() -> Self {
Self {
name: Default::default(),
alias: Default::default(),
args: Default::default(),
prev: Default::default(),
}
}
}