From 47c0a3ca296a9b775275c2c7118a172b9f0bcc54 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Mon, 8 Apr 2019 18:23:55 +0200 Subject: clippy --- dhall_core/src/parser.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dhall_core/src/parser.rs') diff --git a/dhall_core/src/parser.rs b/dhall_core/src/parser.rs index 41a2ce7..9d77f52 100644 --- a/dhall_core/src/parser.rs +++ b/dhall_core/src/parser.rs @@ -180,7 +180,7 @@ macro_rules! make_parser { ); ($( $submac:ident!( $name:ident<$o:ty> $($args:tt)* ); )*) => ( - #[allow(non_camel_case_types, dead_code)] + #[allow(non_camel_case_types, dead_code, clippy::large_enum_variant)] #[derive(Debug)] enum ParsedValue<'a> { $( $name($o), )* @@ -283,7 +283,7 @@ make_parser! { [label(l)] => { if crate::Builtin::parse(&String::from(&l)).is_some() { Err( - format!("Builtin names are not allowed as bound variables") + "Builtin names are not allowed as bound variables".to_string() )? } l @@ -323,7 +323,7 @@ make_parser! { // "uXXXX" use std::convert::TryFrom; let c = u16::from_str_radix(&s[1..5], 16).unwrap(); - let c = char::try_from(c as u32).unwrap(); + let c = char::try_from(u32::from(c)).unwrap(); std::iter::once(c).collect() } } -- cgit v1.2.3