diff --git a/bril-rs/bril2json/src/lib.rs b/bril-rs/bril2json/src/lib.rs index d921841d6..032a69b67 100644 --- a/bril-rs/bril2json/src/lib.rs +++ b/bril-rs/bril2json/src/lib.rs @@ -24,7 +24,7 @@ pub fn escape_control_chars(s: &str) -> Option { "\\v" => Some('\u{000B}'), "\\f" => Some('\u{000C}'), "\\r" => Some('\u{000D}'), - s if s.len() == 1 => s.chars().next(), + s if s.chars().count() == 1 => s.chars().next(), _ => None, } } diff --git a/bril-rs/brild/src/lib.rs b/bril-rs/brild/src/lib.rs index 92de3babe..4e92ad0bb 100644 --- a/bril-rs/brild/src/lib.rs +++ b/bril-rs/brild/src/lib.rs @@ -2,6 +2,8 @@ #![warn(missing_docs)] #![doc = include_str!("../README.md")] #![allow(clippy::module_name_repetitions)] +// todo until multiple versions of some really far down dependency are fixed +#![allow(clippy::multiple_crate_versions)] #[doc(hidden)] pub mod cli; diff --git a/test/interp-error/char-error/badconversion.bril b/test/interp-error/char-error/badconversion.bril index 7937f13d5..e6b742382 100644 --- a/test/interp-error/char-error/badconversion.bril +++ b/test/interp-error/char-error/badconversion.bril @@ -1,6 +1,6 @@ @main { i: int = const 56193; - + c: char = int2char i; print c;