Skip to content

Commit

Permalink
Support emojis properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Pat-Lafon committed Jun 29, 2023
1 parent 943157e commit 0ba6fbd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bril-rs/bril2json/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub fn escape_control_chars(s: &str) -> Option<char> {
"\\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,
}
}
Expand Down
2 changes: 2 additions & 0 deletions bril-rs/brild/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/interp-error/char-error/badconversion.bril
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@main {
i: int = const 56193;

c: char = int2char i;

print c;
Expand Down

0 comments on commit 0ba6fbd

Please sign in to comment.