use downcasting for configuring backend objects

This commit is contained in:
steven-omaha
2023-02-23 14:23:04 +01:00
parent 53091759e5
commit ee4fd5da37
3 changed files with 14 additions and 11 deletions
@@ -8,7 +8,7 @@ use anyhow::{Context, Result};
use crate::backend::backend_trait::{Backend, Switches, Text};
use crate::{impl_backend_constants, Group, Package};
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Arch {
pub(crate) binary: String,
pub(crate) aur_rm_args: Option<Vec<String>>,
@@ -9,7 +9,7 @@ use serde_json::Value;
use crate::backend::backend_trait::{Backend, Switches, Text};
use crate::{impl_backend_constants, Group, Package};
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Rust {
pub(crate) packages: HashSet<Package>,
}