summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxVerevkin <maxxverrr@gmail.com>2025-03-05 16:08:51 +0200
committerMaxVerevkin <maxxverrr@gmail.com>2025-03-05 16:08:51 +0200
commitebc8d96847485010729941dabb90cc773000e0e7 (patch)
treefaf451eb91f2a429d1365c8d7273e8d0c8de7a88 /src
parente364fba4478ea6c6e9b6ad2b7d4db8ecc895daec (diff)
downloadi3bar-mango-ebc8d96847485010729941dabb90cc773000e0e7.tar.gz
update formatting to rust 2024
Diffstat (limited to 'src')
-rw-r--r--src/config.rs2
-rw-r--r--src/i3bar_protocol.rs2
-rw-r--r--src/wm_info_provider/river.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/config.rs b/src/config.rs
index 48855c8..e4b82cf 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -2,7 +2,7 @@ use crate::color::Color;
use crate::protocol::{zwlr_layer_shell_v1, zwlr_layer_surface_v1};
use anyhow::{Context, Result};
use pangocairo::pango::FontDescription;
-use serde::{de, Deserialize};
+use serde::{Deserialize, de};
use std::collections::HashMap;
use std::fs::read_to_string;
use std::ops::Deref;
diff --git a/src/i3bar_protocol.rs b/src/i3bar_protocol.rs
index d6b401b..8aee9af 100644
--- a/src/i3bar_protocol.rs
+++ b/src/i3bar_protocol.rs
@@ -2,7 +2,7 @@ use crate::color::Color;
use crate::pointer_btn::PointerBtn;
use crate::text::Align;
use crate::utils::{de_first_json, de_last_json, last_line};
-use serde::{de, Deserialize, Serialize};
+use serde::{Deserialize, Serialize, de};
use std::io::{self, Error, ErrorKind};
#[derive(Clone, Deserialize, Default, Debug)]
diff --git a/src/wm_info_provider/river.rs b/src/wm_info_provider/river.rs
index 9cf8c47..9af3385 100644
--- a/src/wm_info_provider/river.rs
+++ b/src/wm_info_provider/river.rs
@@ -1,7 +1,7 @@
use std::ffi::CString;
-use wayrs_client::proxy::Proxy;
use wayrs_client::EventCtx;
+use wayrs_client::proxy::Proxy;
use super::*;