ksud: fix rustfmt errors (#359)

This commit is contained in:
Caner Karaca
2025-05-06 19:48:58 +03:00
committed by GitHub
parent 48e533f660
commit 1d23b4bb67
2 changed files with 5 additions and 9 deletions

View File

@@ -40,8 +40,8 @@ enum Commands {
/// Install KernelSU Next userspace component to system /// Install KernelSU Next userspace component to system
Install { Install {
#[arg(long, default_value = None)] #[arg(long, default_value = None)]
magiskboot: Option<PathBuf>, magiskboot: Option<PathBuf>,
}, },
/// Uninstall KernelSU Next modules and itself(LKM Only) /// Uninstall KernelSU Next modules and itself(LKM Only)
@@ -116,7 +116,6 @@ enum Commands {
// #[arg(long, default_value = None)] // #[arg(long, default_value = None)]
// magiskboot: Option<PathBuf>, // magiskboot: Option<PathBuf>,
// }, // },
/// Show boot information /// Show boot information
BootInfo { BootInfo {
#[command(subcommand)] #[command(subcommand)]
@@ -366,7 +365,6 @@ pub fn run() -> Result<()> {
// magiskboot, // magiskboot,
// kmi, // kmi,
// } => crate::boot_patch::patch(boot, kernel, module, init, ota, flash, out, magiskboot, kmi), // DISBAND LKM MODE // } => crate::boot_patch::patch(boot, kernel, module, init, ota, flash, out, magiskboot, kmi), // DISBAND LKM MODE
Commands::BootInfo { command } => match command { Commands::BootInfo { command } => match command {
BootInfo::CurrentKmi => { BootInfo::CurrentKmi => {
let kmi = crate::boot_patch::get_current_kmi()?; let kmi = crate::boot_patch::get_current_kmi()?;

View File

@@ -36,9 +36,9 @@ enum Commands {
/// Install KernelSU Next userspace component to system /// Install KernelSU Next userspace component to system
Install { Install {
#[arg(long, default_value = None)] #[arg(long, default_value = None)]
magiskboot: Option<PathBuf>, magiskboot: Option<PathBuf>,
}, },
/// Uninstall KernelSU Next modules and itself(LKM Only) /// Uninstall KernelSU Next modules and itself(LKM Only)
Uninstall { Uninstall {
@@ -112,7 +112,6 @@ enum Commands {
// #[arg(long, default_value = None)] // #[arg(long, default_value = None)]
// magiskboot: Option<PathBuf>, // magiskboot: Option<PathBuf>,
// }, // },
/// Show boot information /// Show boot information
BootInfo { BootInfo {
#[command(subcommand)] #[command(subcommand)]
@@ -381,7 +380,6 @@ pub fn run() -> Result<()> {
// magiskboot, // magiskboot,
// kmi, // kmi,
// } => crate::boot_patch::patch(boot, kernel, module, init, ota, flash, out, magiskboot, kmi), // DISBAND LKM MODE // } => crate::boot_patch::patch(boot, kernel, module, init, ota, flash, out, magiskboot, kmi), // DISBAND LKM MODE
Commands::BootInfo { command } => match command { Commands::BootInfo { command } => match command {
BootInfo::CurrentKmi => { BootInfo::CurrentKmi => {
let kmi = crate::boot_patch::get_current_kmi()?; let kmi = crate::boot_patch::get_current_kmi()?;