Skip to content

Commit

Permalink
lint: appease Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
fosskers committed May 12, 2023
1 parent 1cef5c6 commit 4be3dee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions alpm-utils/src/alpm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ use alpm::{Alpm, AlpmList, Db, IntoIter, Package};
pub trait AlpmExt {
/// An iterator of [`Package`]s that are found in "sync databases",
/// typically registered in one's `pacman.conf`.
fn native_packages<'a>(&'a self) -> NativePkgs<'a>;
fn native_packages(&self) -> NativePkgs<'_>;

/// The opposite of [`AlpmExt::native_packages`]; installed packages that
/// aren't found in any registered "sync database".
fn foreign_packages<'a>(&'a self) -> ForeignPkgs<'a>;
fn foreign_packages(&self) -> ForeignPkgs<'_>;
}

impl AlpmExt for Alpm {
fn native_packages<'a>(&'a self) -> NativePkgs<'a> {
fn native_packages(&self) -> NativePkgs<'_> {
NativePkgs::new(self)
}

fn foreign_packages<'a>(&'a self) -> ForeignPkgs<'a> {
fn foreign_packages(&self) -> ForeignPkgs<'_> {
ForeignPkgs::new(self)
}
}
Expand Down

0 comments on commit 4be3dee

Please sign in to comment.