Skip to content

Commit d580d4d

Browse files
committed
move check_signature from Package to Pkg
1 parent 8da3960 commit d580d4d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

alpm/src/signing.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use crate::utils::*;
2-
use crate::{free, Alpm, AlpmListMut, Db, Package, Result};
1+
use crate::{free, Alpm, AlpmListMut, Db, Result};
2+
use crate::{utils::*, Pkg};
33

44
use alpm_sys::_alpm_sigstatus_t::*;
55
use alpm_sys::_alpm_sigvalidity_t::*;
@@ -190,10 +190,10 @@ impl SigList {
190190
}
191191
}
192192

193-
impl<'a> Package<'a> {
193+
impl<'a> Pkg<'a> {
194194
pub fn check_signature(&self) -> Result<(bool, SigList)> {
195195
let mut siglist = SigList::new();
196-
let ret = unsafe { alpm_pkg_check_pgp_signature(self.pkg.as_ptr(), &mut siglist.inner) };
196+
let ret = unsafe { alpm_pkg_check_pgp_signature(self.as_ptr(), &mut siglist.inner) };
197197
let valid = match ret {
198198
0 => true,
199199
1 => false,

0 commit comments

Comments
 (0)