Skip to content

Commit

Permalink
feat(utils): rework module structure
Browse files Browse the repository at this point in the history
  • Loading branch information
fosskers committed Aug 26, 2022
1 parent 26f24a9 commit ff025a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alpm-utils/src/depends.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub fn satisfies_provide_nover(dep: impl AsDep, provide: impl AsDep) -> bool {
dep.as_dep().name() == provide.as_dep().name()
}

pub(crate) fn satisfies_ver<V: AsRef<Ver>>(dep: impl AsDep, version: V) -> bool {
fn satisfies_ver<V: AsRef<Ver>>(dep: impl AsDep, version: V) -> bool {
let version = version.as_ref();
let dep = dep.as_dep();

Expand Down
3 changes: 2 additions & 1 deletion alpm-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
mod conf;

#[cfg(feature = "alpm")]
pub mod alpm;
mod alpm;
mod db;

/// Utils for dependency checking.
Expand All @@ -20,5 +20,6 @@ mod target;
pub use crate::conf::*;

#[cfg(feature = "alpm")]
pub use crate::alpm::*;
pub use crate::db::*;
pub use crate::target::*;

0 comments on commit ff025a5

Please sign in to comment.