Skip to content

Commit a3df720

Browse files
committed
chore: ignore clippy::type_complexity in some function
1 parent 7007391 commit a3df720

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/parser.rs

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ fn single_package(input: &[u8]) -> IResult<&[u8], Vec<(&[u8], &[u8])>> {
4242
}
4343

4444
#[inline]
45+
#[allow(clippy::type_complexity)]
4546
pub fn single_package_map(input: &[u8]) -> IResult<&[u8], HashMap<&[u8], &[u8]>> {
4647
let mut map = HashMap::new();
4748
let (ret, res) = single_package(input)?;

src/scan/dbscan.rs

+1
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ pub fn collect_removed_packages(removed: SegQueue<PathBuf>, mirror_root: &Path)
147147
}
148148

149149
/// Validate if the records in the database are up to date with the packages
150+
#[allow(clippy::type_complexity)]
150151
pub fn validate_packages<P: AsRef<Path>>(
151152
root: P,
152153
packages: &[db::PVPackage],

0 commit comments

Comments
 (0)