diff --git a/impl/src/fmt/parsing.rs b/impl/src/fmt/parsing.rs index ff4fbd0d..49ee07f0 100644 --- a/impl/src/fmt/parsing.rs +++ b/impl/src/fmt/parsing.rs @@ -280,7 +280,7 @@ pub(crate) fn format(input: &str) -> Option<(LeftToParse<'_>, Format<'_>)> { /// ``` /// /// [0]: std::fmt#syntax -fn argument(input: &str) -> Option<(LeftToParse<'_>, Argument)> { +fn argument(input: &str) -> Option<(LeftToParse<'_>, Argument<'_>)> { alt(&mut [ &mut map(identifier, |(i, ident)| (i, Argument::Identifier(ident))), &mut map(integer, |(i, int)| (i, Argument::Integer(int))), diff --git a/tests/lib.rs b/tests/lib.rs index c6c2bafa..4899ae56 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -1,4 +1,5 @@ #![cfg_attr(not(feature = "std"), no_std)] +#![allow(dead_code)] // some code is tested for type checking only #[cfg(not(feature = "std"))] #[macro_use]