remove backend/types
This commit is contained in:
@@ -6,7 +6,8 @@ use anyhow::{Context, Result};
|
|||||||
|
|
||||||
use crate::{Group, Package};
|
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 {
|
pub(crate) trait Backend {
|
||||||
fn get_binary(&self) -> Text;
|
fn get_binary(&self) -> Text;
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ mod macros;
|
|||||||
mod pacman;
|
mod pacman;
|
||||||
mod rust;
|
mod rust;
|
||||||
mod todo_per_backend;
|
mod todo_per_backend;
|
||||||
mod types;
|
|
||||||
|
|
||||||
pub(crate) use backend_trait::Backend;
|
pub(crate) use backend_trait::Backend;
|
||||||
pub(crate) use iter::BackendIter;
|
pub(crate) use iter::BackendIter;
|
||||||
|
|||||||
@@ -4,8 +4,7 @@ use alpm::Alpm;
|
|||||||
use alpm::PackageReason::Explicit;
|
use alpm::PackageReason::Explicit;
|
||||||
use anyhow::{Context, Result};
|
use anyhow::{Context, Result};
|
||||||
|
|
||||||
use super::types::{Switches, Text};
|
use super::backend_trait::*;
|
||||||
use super::Backend;
|
|
||||||
use crate::{impl_backend_constants, Group, Package};
|
use crate::{impl_backend_constants, Group, Package};
|
||||||
|
|
||||||
pub(crate) struct Pacman {
|
pub(crate) struct Pacman {
|
||||||
|
|||||||
+1
-2
@@ -5,8 +5,7 @@ use std::path::PathBuf;
|
|||||||
use anyhow::{Context, Result};
|
use anyhow::{Context, Result};
|
||||||
use serde_json::Value;
|
use serde_json::Value;
|
||||||
|
|
||||||
use super::types::{Switches, Text};
|
use super::backend_trait::*;
|
||||||
use super::Backend;
|
|
||||||
use crate::{impl_backend_constants, Group, Package};
|
use crate::{impl_backend_constants, Group, Package};
|
||||||
|
|
||||||
pub(crate) struct Rust {
|
pub(crate) struct Rust {
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
pub(in crate::backend) type Switches = &'static [&'static str];
|
|
||||||
pub(in crate::backend) type Text = &'static str;
|
|
||||||
Reference in New Issue
Block a user