From 90f2816d156f7f146b723d4942c27505d020fd65 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Wed, 13 Sep 2023 11:07:33 -0400 Subject: [PATCH] Adjust order of health checks --- crates/nix_health/src/lib.rs | 4 ++-- src/app/health.rs | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/crates/nix_health/src/lib.rs b/crates/nix_health/src/lib.rs index 3f42339e..7927584a 100644 --- a/crates/nix_health/src/lib.rs +++ b/crates/nix_health/src/lib.rs @@ -41,10 +41,10 @@ impl<'a> IntoIterator for &'a NixHealth { /// Return an iterator to iterate on the fields of [NixHealth] fn into_iter(self) -> Self::IntoIter { let items: Vec = vec![ + &self.min_nix_version, + &self.flake_enabled, &self.max_jobs, &self.caches, - &self.flake_enabled, - &self.min_nix_version, &self.trusted_users, ]; items.into_iter() diff --git a/src/app/health.rs b/src/app/health.rs index 00eba0f5..d4ef533a 100644 --- a/src/app/health.rs +++ b/src/app/health.rs @@ -47,18 +47,19 @@ pub fn NixHealthRoute(cx: Scope) -> impl IntoView { fn NixHealthView(cx: Scope, health: NixHealth) -> impl IntoView { view! { cx,
+ // NOTE: Aim to keep this order in alignment with that of the IntoIterator impl + + + - - -