remove backend/types

This commit is contained in:
steven-omaha
2023-01-12 23:18:17 +01:00
parent c8c6ceabc7
commit 28f95a42c7
5 changed files with 4 additions and 8 deletions
+2 -1
View File
@@ -6,7 +6,8 @@ use anyhow::{Context, Result};
use crate::{Group, Package};
use super::types::{Switches, Text};
pub(in crate::backend) type Switches = &'static [&'static str];
pub(in crate::backend) type Text = &'static str;
pub(crate) trait Backend {
fn get_binary(&self) -> Text;
-1
View File
@@ -4,7 +4,6 @@ mod macros;
mod pacman;
mod rust;
mod todo_per_backend;
mod types;
pub(crate) use backend_trait::Backend;
pub(crate) use iter::BackendIter;
+1 -2
View File
@@ -4,8 +4,7 @@ use alpm::Alpm;
use alpm::PackageReason::Explicit;
use anyhow::{Context, Result};
use super::types::{Switches, Text};
use super::Backend;
use super::backend_trait::*;
use crate::{impl_backend_constants, Group, Package};
pub(crate) struct Pacman {
+1 -2
View File
@@ -5,8 +5,7 @@ use std::path::PathBuf;
use anyhow::{Context, Result};
use serde_json::Value;
use super::types::{Switches, Text};
use super::Backend;
use super::backend_trait::*;
use crate::{impl_backend_constants, Group, Package};
pub(crate) struct Rust {
-2
View File
@@ -1,2 +0,0 @@
pub(in crate::backend) type Switches = &'static [&'static str];
pub(in crate::backend) type Text = &'static str;