diff --git a/CHANGELOG.md b/CHANGELOG.md index 0896f21..e8436be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ ### Refactors + major refactor of internal data handling, [b4488e4bdb0252f5c5680cee6a46427f22a282ab] + needless (double) referencing removed, [a174dafe1b05908735680a874dc551a86da24777] ++ app_data methods re-ordered & renamed, [c0bb5355d6a5d352260655110ce3d5ab695acda9] ### Reverts + is_running AtomicBool back to SeqCst, [c4d80061dab94afd08d4d793dc147f878c965ad6] diff --git a/src/app_data/mod.rs b/src/app_data/mod.rs index fccd1f7..77ba29a 100644 --- a/src/app_data/mod.rs +++ b/src/app_data/mod.rs @@ -530,7 +530,7 @@ impl AppData { .containers .items .iter() - .map(|i| i.id.to_owned()) + .map(|i| i.id.clone()) .collect::>(); // Only sort it no containers currently set, as afterwards the order is fixed diff --git a/src/main.rs b/src/main.rs index f7b7e1d..9e3fdfe 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,7 @@ #![forbid(unsafe_code)] #![warn(clippy::unused_async, clippy::unwrap_used, clippy::expect_used)] // Warning - These are indeed pedantic -// #![warn(clippy::pedantic)] +#![warn(clippy::pedantic)] #![warn(clippy::nursery)] #![allow( clippy::module_name_repetitions, diff --git a/src/ui/draw_blocks.rs b/src/ui/draw_blocks.rs index 8cc66b5..9e1a0fe 100644 --- a/src/ui/draw_blocks.rs +++ b/src/ui/draw_blocks.rs @@ -266,6 +266,7 @@ pub fn chart(f: &mut Frame<'_, B>, area: Rect, app_data: &Arc