style: apply rustfmt to existing files
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/claude-agent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
|
pub mod aggregates;
|
||||||
|
pub mod conversions;
|
||||||
pub mod models;
|
pub mod models;
|
||||||
pub mod navigation;
|
pub mod navigation;
|
||||||
pub mod conversions;
|
|
||||||
pub mod aggregates;
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
pub mod app_renderer;
|
pub mod app_renderer;
|
||||||
pub mod library;
|
pub mod library;
|
||||||
pub mod notifications;
|
|
||||||
pub mod topbar;
|
|
||||||
pub mod progress_bar;
|
|
||||||
pub mod pane;
|
|
||||||
pub mod statusbar;
|
|
||||||
pub mod modals;
|
pub mod modals;
|
||||||
|
pub mod notifications;
|
||||||
|
pub mod pane;
|
||||||
|
pub mod progress_bar;
|
||||||
|
pub mod statusbar;
|
||||||
|
pub mod topbar;
|
||||||
pub mod views;
|
pub mod views;
|
||||||
|
|||||||
@@ -10,7 +10,9 @@ use ratatui::{
|
|||||||
widgets::{Block, Borders, Clear, Paragraph},
|
widgets::{Block, Borders, Clear, Paragraph},
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::application::notification_state::{format_elapsed, Notification, NotificationManager, MAX_VISIBLE};
|
use crate::application::notification_state::{
|
||||||
|
MAX_VISIBLE, Notification, NotificationManager, format_elapsed,
|
||||||
|
};
|
||||||
use crate::theme;
|
use crate::theme;
|
||||||
|
|
||||||
impl NotificationManager {
|
impl NotificationManager {
|
||||||
|
|||||||
+4
-22
@@ -1,4 +1,4 @@
|
|||||||
use ratatui::{backend::TestBackend, widgets::Paragraph, Terminal};
|
use ratatui::{Terminal, backend::TestBackend, widgets::Paragraph};
|
||||||
use ui_agregator::app::Tab;
|
use ui_agregator::app::Tab;
|
||||||
use ui_agregator::data::{Album, AlbumStatus, Artist, MonitorState, Track};
|
use ui_agregator::data::{Album, AlbumStatus, Artist, MonitorState, Track};
|
||||||
use ui_agregator::ui::library::{
|
use ui_agregator::ui::library::{
|
||||||
@@ -311,13 +311,7 @@ mod albums_list_snapshots {
|
|||||||
album_state.select(Some(0));
|
album_state.select(Some(0));
|
||||||
terminal
|
terminal
|
||||||
.draw(|f| {
|
.draw(|f| {
|
||||||
render_albums_list(
|
render_albums_list(f, f.area(), albums, LibraryFocus::Albums, &mut album_state);
|
||||||
f,
|
|
||||||
f.area(),
|
|
||||||
albums,
|
|
||||||
LibraryFocus::Albums,
|
|
||||||
&mut album_state,
|
|
||||||
);
|
|
||||||
})
|
})
|
||||||
.unwrap();
|
.unwrap();
|
||||||
insta::assert_snapshot!(terminal.backend());
|
insta::assert_snapshot!(terminal.backend());
|
||||||
@@ -332,13 +326,7 @@ mod albums_list_snapshots {
|
|||||||
album_state.select(Some(0));
|
album_state.select(Some(0));
|
||||||
terminal
|
terminal
|
||||||
.draw(|f| {
|
.draw(|f| {
|
||||||
render_albums_list(
|
render_albums_list(f, f.area(), albums, LibraryFocus::Artists, &mut album_state);
|
||||||
f,
|
|
||||||
f.area(),
|
|
||||||
albums,
|
|
||||||
LibraryFocus::Artists,
|
|
||||||
&mut album_state,
|
|
||||||
);
|
|
||||||
})
|
})
|
||||||
.unwrap();
|
.unwrap();
|
||||||
insta::assert_snapshot!(terminal.backend());
|
insta::assert_snapshot!(terminal.backend());
|
||||||
@@ -386,13 +374,7 @@ mod albums_list_snapshots {
|
|||||||
album_state.select(Some(1));
|
album_state.select(Some(1));
|
||||||
terminal
|
terminal
|
||||||
.draw(|f| {
|
.draw(|f| {
|
||||||
render_albums_list(
|
render_albums_list(f, f.area(), &albums, LibraryFocus::Albums, &mut album_state);
|
||||||
f,
|
|
||||||
f.area(),
|
|
||||||
&albums,
|
|
||||||
LibraryFocus::Albums,
|
|
||||||
&mut album_state,
|
|
||||||
);
|
|
||||||
})
|
})
|
||||||
.unwrap();
|
.unwrap();
|
||||||
insta::assert_snapshot!(terminal.backend());
|
insta::assert_snapshot!(terminal.backend());
|
||||||
|
|||||||
Reference in New Issue
Block a user