fix build for rust 1.20.0

This commit is contained in:
Alexandru Macovei 2018-07-01 04:25:39 +03:00 committed by David Peter
parent 9a45947234
commit 4dee8b7940
1 changed files with 2 additions and 2 deletions

View File

@ -102,8 +102,8 @@ impl SizeFilter {
pub fn is_within(&self, size: u64) -> bool { pub fn is_within(&self, size: u64) -> bool {
match self { match self {
SizeFilter::Max(limit) => size <= *limit, &SizeFilter::Max(limit) => size <= limit,
SizeFilter::Min(limit) => size >= *limit, &SizeFilter::Min(limit) => size >= limit,
} }
} }
} }