Skip to content

Commit

Permalink
health: reorder checks
Browse files Browse the repository at this point in the history
caches must come after trusted-users
  • Loading branch information
srid committed Oct 16, 2024
1 parent 93ccb6d commit 1a67e61
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions crates/nix_health/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ use self::check::{
#[derive(Debug, Default, Serialize, Deserialize, Clone)]
#[serde(default, rename_all = "kebab-case")]
pub struct NixHealth {
pub max_jobs: MaxJobs,
pub caches: Caches,
pub flake_enabled: FlakeEnabled,
pub nix_version: MinNixVersion,
pub flake_enabled: FlakeEnabled,
pub max_jobs: MaxJobs,
pub rosetta: Rosetta,
pub system: check::system::System,
pub trusted_users: TrustedUsers,
pub rosetta: Rosetta,
pub caches: Caches,
pub direnv: Direnv,
}

Expand All @@ -46,13 +46,13 @@ 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<Self::Item> = vec![
&self.rosetta,
&self.nix_version,
&self.flake_enabled,
&self.system,
&self.max_jobs,
&self.caches,
&self.rosetta,
&self.system,
&self.trusted_users,
&self.caches,
&self.direnv,
];
items.into_iter()
Expand Down

0 comments on commit 1a67e61

Please sign in to comment.