Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Commit 96ca4fc

Browse files
committed
chore: update to v1.1.0; use rust edition 2024
1 parent e157131 commit 96ca4fc

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "oxidizr"
3-
version = "1.0.0"
4-
edition = "2021"
3+
version = "1.1.0"
4+
edition = "2024"
55

66
[dependencies]
77
clap = { version = "4.5.34", features = ["derive"] }

src/experiments/sudors.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ impl<'a> SudoRsExperiment<'a> {
2929

3030
/// Reports the first supported release for the experiment.
3131
pub fn supported_releases(&self) -> Vec<String> {
32-
return vec![
32+
vec![
3333
"24.04".to_string(),
3434
"24.10".to_string(),
3535
"25.04".to_string(),
36-
];
36+
]
3737
}
3838

3939
/// Check if the package is installed.
@@ -93,7 +93,7 @@ impl<'a> SudoRsExperiment<'a> {
9393
#[cfg(test)]
9494
mod tests {
9595
use super::*;
96-
use crate::utils::{vecs_eq, Distribution, MockSystem};
96+
use crate::utils::{Distribution, MockSystem, vecs_eq};
9797

9898
#[test]
9999
fn test_sudors_incompatible_distribution() {

src/experiments/uutils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl<'a> UutilsExperiment<'a> {
4949

5050
/// Reports the first supported release for the experiment.
5151
pub fn supported_releases(&self) -> Vec<String> {
52-
return self.supported_releases.clone();
52+
self.supported_releases.clone()
5353
}
5454

5555
/// Check if the package is installed.
@@ -110,7 +110,7 @@ impl<'a> UutilsExperiment<'a> {
110110
#[cfg(test)]
111111
mod tests {
112112
use super::*;
113-
use crate::utils::{vecs_eq, Distribution, MockSystem};
113+
use crate::utils::{Distribution, MockSystem, vecs_eq};
114114

115115
#[test]
116116
fn test_uutils_incompatible_distribution() {

src/main.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ use std::process::exit;
3434
use anyhow::Result;
3535
use clap::{Parser, Subcommand};
3636
use clap_verbosity_flag::{InfoLevel, Verbosity};
37-
use experiments::{all_experiments, Experiment};
37+
use experiments::{Experiment, all_experiments};
3838
use inquire::Confirm;
3939
use tracing::{info, warn};
4040
use tracing_subscriber::{fmt, prelude::*};
41-
use utils::{vecs_eq, System, Worker};
41+
use utils::{System, Worker, vecs_eq};
4242

4343
/// A command-line utility to install modern Rust-based replacements of essential
4444
/// packages such as coreutils, findutils, diffutils and sudo and make them the
@@ -123,7 +123,9 @@ fn main() -> Result<()> {
123123
"This program only supports Ubuntu"
124124
);
125125
} else if system.distribution()?.id != "Ubuntu" {
126-
warn!("Running on a non-Ubuntu distribution. This is unsupported and may cause system instability.");
126+
warn!(
127+
"Running on a non-Ubuntu distribution. This is unsupported and may cause system instability."
128+
);
127129
}
128130

129131
// Get selected experiments from the command line arguments

0 commit comments

Comments
 (0)