chore: add rustfmt config

This commit is contained in:
Vukašin Vojinović 2026-05-04 18:02:46 +02:00 committed by Jacob Kauffmann
parent cb4a0d3a3a
commit 4b1f388a4f
78 changed files with 394 additions and 485 deletions

View file

@ -2,13 +2,11 @@
// SPDX-License-Identifier: MPL-2.0
use crate::{Active, Event};
use std::{
collections::HashMap,
convert::Infallible,
hash::{Hash, Hasher},
path::PathBuf,
time::Duration,
};
use std::collections::HashMap;
use std::convert::Infallible;
use std::hash::{Hash, Hasher};
use std::path::PathBuf;
use std::time::Duration;
use zbus::zvariant::OwnedObjectPath;
#[derive(Default, Debug, Clone)]

View file

@ -3,11 +3,9 @@
use crate::{Active, Event};
use futures::join;
use std::{
collections::HashMap,
hash::{Hash, Hasher},
time::Duration,
};
use std::collections::HashMap;
use std::hash::{Hash, Hasher};
use std::time::Duration;
use zbus::zvariant::OwnedObjectPath;
const DEFAILT_DEVICE_ICON: &str = "bluetooth-symbolic";

View file

@ -5,9 +5,11 @@ use crate::{AdapterUpdate, Device, DeviceUpdate, Event};
use std::pin::Pin;
use bluez_zbus::BluetoothDevice;
use futures::{channel::mpsc, stream::FusedStream};
use futures::channel::mpsc;
use futures::stream::FusedStream;
use iced_futures::futures::{SinkExt, StreamExt};
use zbus::{fdo, zvariant::OwnedObjectPath};
use zbus::fdo;
use zbus::zvariant::OwnedObjectPath;
enum DevicePropertyWatcherTask {
Add(OwnedObjectPath),