From e41426ed7183d7401025614e9b7e5c1a1ea88a3d Mon Sep 17 00:00:00 2001 From: Badr Date: Sun, 15 Dec 2024 21:19:54 +0100 Subject: [PATCH] fix lint --- src/app.rs | 8 ++++---- src/help.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app.rs b/src/app.rs index 4492048..b589bbb 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1,10 +1,9 @@ use bluer::{ - Session, agent::{Agent, AgentHandle}, + Session, }; use futures::FutureExt; use ratatui::{ - Frame, layout::{Alignment, Constraint, Direction, Layout, Margin}, style::{Color, Modifier, Style, Stylize}, text::{Line, Span}, @@ -12,11 +11,12 @@ use ratatui::{ Block, BorderType, Borders, Cell, Clear, Padding, Paragraph, Row, Scrollbar, ScrollbarOrientation, ScrollbarState, Table, TableState, }, + Frame, }; use tui_input::Input; use crate::{ - bluetooth::{Controller, request_confirmation}, + bluetooth::{request_confirmation, Controller}, config::Config, confirmation::PairingConfirmation, help::Help, @@ -25,7 +25,7 @@ use crate::{ }; use std::{ error, - sync::{Arc, atomic::Ordering}, + sync::{atomic::Ordering, Arc}, }; pub type AppResult = std::result::Result>; diff --git a/src/help.rs b/src/help.rs index c634d68..1c1cebe 100644 --- a/src/help.rs +++ b/src/help.rs @@ -1,13 +1,13 @@ use std::sync::Arc; use ratatui::{ - Frame, layout::{Alignment, Constraint, Direction, Layout, Margin}, style::{Color, Style, Stylize}, widgets::{ Block, BorderType, Borders, Cell, Clear, Padding, Row, Scrollbar, ScrollbarOrientation, ScrollbarState, Table, TableState, }, + Frame, }; use crate::{app::ColorMode, config::Config};