Switch to putting radio targets in the global settings instead of the context tree.
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
#[derive(Debug)]
|
||||
pub struct GlobalSettings<'s> {
|
||||
#[allow(dead_code)]
|
||||
placeholder: Option<&'s str>,
|
||||
use crate::types::Object;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct GlobalSettings<'g, 's> {
|
||||
pub radio_targets: Vec<&'g Vec<Object<'s>>>,
|
||||
}
|
||||
|
||||
impl<'s> GlobalSettings<'s> {
|
||||
impl<'g, 's> GlobalSettings<'g, 's> {
|
||||
pub fn new() -> Self {
|
||||
GlobalSettings { placeholder: None }
|
||||
GlobalSettings {
|
||||
radio_targets: Vec::new(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<'s> Default for GlobalSettings<'s> {
|
||||
impl<'g, 's> Default for GlobalSettings<'g, 's> {
|
||||
fn default() -> Self {
|
||||
GlobalSettings::new()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user