update to new i3status-rust version

This commit is contained in:
LordMZTE 2023-06-03 00:46:42 +02:00
parent 96f62f2283
commit 34c529b20c
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
2 changed files with 3 additions and 1 deletions

View file

@ -12,3 +12,4 @@ i3status-rs = { git = "https://github.com/greshake/i3status-rust.git" }
serde_json = "1.0.96"
tokio = "1.28.1"
toml = "0.7.4"
unicode-segmentation = "1.10.1"

View file

@ -1,4 +1,5 @@
use std::sync::Arc;
use unicode_segmentation::UnicodeSegmentation;
use i3status_rs::{
blocks,
@ -19,7 +20,7 @@ use i3status_rs::{
async fn main() {
if let Err(e) = try_main().await {
let err_widget = Widget::new()
.with_text(e.to_string().chars().collect_pango_escaped())
.with_text(e.to_string().graphemes(true).collect_pango_escaped())
.with_state(State::Critical);
serde_json::to_writer(