You've already forked KernelSU-Next
mirror of
https://github.com/KernelSU-Next/KernelSU-Next.git
synced 2025-08-27 23:46:34 +00:00
ksud: fix rustfmt errors (#359)
This commit is contained in:
@@ -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()?;
|
||||||
|
|||||||
@@ -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()?;
|
||||||
|
|||||||
Reference in New Issue
Block a user