Codebase list rust-stfu8 / bb79e96
mime-guess - fix tests with --no-default-features Peter Michael Green 1 year, 10 months ago
3 changed file(s) with 32 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 rust-mime-guess (2.0.4-2) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * Team upload.
3 * Package mime_guess 2.0.4 from crates.io using debcargo 2.5.0
4 * Fix tests with --no-default-features.
5
6 -- Peter Michael Green <plugwash@debian.org> Mon, 27 Jun 2022 21:18:46 +0000
7
08 rust-mime-guess (2.0.4-1) unstable; urgency=medium
19
210 * Team upload.
0 Index: mime-guess/src/lib.rs
1 ===================================================================
2 --- mime-guess.orig/src/lib.rs
3 +++ mime-guess/src/lib.rs
4 @@ -432,7 +432,9 @@ pub fn octet_stream() -> Mime {
5 mod tests {
6 include!("mime_types.rs");
7
8 - use super::{expect_mime, from_ext, from_path, get_mime_extensions_str};
9 + use super::{expect_mime, from_ext, from_path};
10 + #[cfg(feature="rev-mappings")]
11 + use super::get_mime_extensions_str;
12 #[allow(deprecated, unused_imports)]
13 use std::ascii::AsciiExt;
14
15 @@ -527,6 +529,7 @@ mod tests {
16 }
17 }
18
19 + #[cfg(feature="rev-mappings")]
20 #[test]
21 fn test_get_mime_extensions_str_no_panic_if_bad_mime() {
22 assert_eq!(get_mime_extensions_str(""), None);
0 fix-tests-no-default-features.patch