chore: upgrade to Rust Edition 2024 (#1863)

https://doc.rust-lang.org/edition-guide/rust-2024/index.html

Fixes #1727
This commit is contained in:
Tyler Breisacher
2025-05-19 01:17:03 -07:00
committed by GitHub
parent 7cb35d4be1
commit dbfb2c3399
91 changed files with 317 additions and 251 deletions

View File

@@ -1255,19 +1255,23 @@ mod tests {
dbg!(input);
dbg!(input.len());
dbg!(input
.graphemes(true)
.map(|symbol| (symbol, symbol.escape_unicode().to_string(), symbol.width()))
.collect::<Vec<_>>());
dbg!(input
.chars()
.map(|char| (
char,
char.escape_unicode().to_string(),
char.width(),
char.is_control()
))
.collect::<Vec<_>>());
dbg!(
input
.graphemes(true)
.map(|symbol| (symbol, symbol.escape_unicode().to_string(), symbol.width()))
.collect::<Vec<_>>()
);
dbg!(
input
.chars()
.map(|char| (
char,
char.escape_unicode().to_string(),
char.width(),
char.is_control()
))
.collect::<Vec<_>>()
);
let mut buffer = Buffer::filled(Rect::new(0, 0, 7, 1), Cell::new("x"));
buffer.set_string(0, 0, input, Style::new());