Skip to content

Support multi module system implementation #179

Support multi module system implementation

Support multi module system implementation #179

GitHub Actions / rustfmt failed Jan 1, 2024 in 0s

rustfmt

1 file, 12 counts

Details

Results

Format checked Amount
Files 1
Count 12

Versions

  • rustc 1.77.0-nightly (e51e98dde 2023-12-31)

  • cargo 1.77.0-nightly (ac6bbb332 2023-12-26)

  • rustfmt 1.7.0-nightly (e51e98d 2023-12-31)

Annotations

Check warning on line 120 in /home/runner/work/KernelSU/KernelSU/userspace/ksud/src/module_api.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              
              ```
            
Expected:

              ```
              

              ```
            

Check warning on line 116 in /home/runner/work/KernelSU/KernelSU/userspace/ksud/src/module_api.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
                  fn mount_modules(&self) -> Result<()>{
        Err(Command::new("/data/adb/ksu/module").args(["mount"]).exec().into())

              ```
            
Expected:

              ```
                  fn mount_modules(&self) -> Result<()> {
        Err(Command::new("/data/adb/ksu/module")
            .args(["mount"])
            .exec()
            .into())

              ```
            

Check warning on line 113 in /home/runner/work/KernelSU/KernelSU/userspace/ksud/src/module_api.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
                  fn list_modules(&self) -> Result<()>{
        Err(Command::new("/data/adb/ksu/module").args(["list"]).exec().into())

              ```
            
Expected:

              ```
                  fn list_modules(&self) -> Result<()> {
        Err(Command::new("/data/adb/ksu/module")
            .args(["list"])
            .exec()
            .into())

              ```
            

Check warning on line 110 in /home/runner/work/KernelSU/KernelSU/userspace/ksud/src/module_api.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
                  fn disable_module(&self, id: &str) -> Result<()>{
        Err(Command::new("/data/adb/ksu/module").args(["disable", id]).exec().into())

              ```
            
Expected:

              ```
                  fn disable_module(&self, id: &str) -> Result<()> {
        Err(Command::new("/data/adb/ksu/module")
            .args(["disable", id])
            .exec()
            .into())

              ```
            

Check warning on line 107 in /home/runner/work/KernelSU/KernelSU/userspace/ksud/src/module_api.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
                  fn enable_module(&self, id: &str) -> Result<()>{
        Err(Command::new("/data/adb/ksu/module").args(["enable", id]).exec().into())

              ```
            
Expected:

              ```
                  fn enable_module(&self, id: &str) -> Result<()> {
        Err(Command::new("/data/adb/ksu/module")
            .args(["enable", id])
            .exec()
            .into())

              ```
            

Check warning on line 104 in /home/runner/work/KernelSU/KernelSU/userspace/ksud/src/module_api.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
                  fn uninstall_module(&self, id: &str) -> Result<()>{
        Err(Command::new("/data/adb/ksu/module").args(["uninstall", id]).exec().into())

              ```
            
Expected:

              ```
                  fn uninstall_module(&self, id: &str) -> Result<()> {
        Err(Command::new("/data/adb/ksu/module")
            .args(["uninstall", id])
            .exec()
            .into())

              ```
            

Check warning on line 101 in /home/runner/work/KernelSU/KernelSU/userspace/ksud/src/module_api.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
                  fn install_module(&self, zip: &str) -> Result<()>{
        Err(Command::new("/data/adb/ksu/module").args(["install", zip]).exec().into())

              ```
            
Expected:

              ```
                  fn install_module(&self, zip: &str) -> Result<()> {
        Err(Command::new("/data/adb/ksu/module")
            .args(["install", zip])
            .exec()
            .into())

              ```
            

Check warning on line 98 in /home/runner/work/KernelSU/KernelSU/userspace/ksud/src/module_api.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
                  fn on_services(&self) -> Result<()>{
        Err(Command::new("/data/adb/ksu/module").args("services").exec().into())

              ```
            
Expected:

              ```
                  fn on_services(&self) -> Result<()> {
        Err(Command::new("/data/adb/ksu/module")
            .args("services")
            .exec()
            .into())

              ```
            

Check warning on line 95 in /home/runner/work/KernelSU/KernelSU/userspace/ksud/src/module_api.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
                  fn on_boot_completed(&self) -> Result<()>{
        Err(Command::new("/data/adb/ksu/module").args("boot-completed").exec().into())

              ```
            
Expected:

              ```
                  fn on_boot_completed(&self) -> Result<()> {
        Err(Command::new("/data/adb/ksu/module")
            .args("boot-completed")
            .exec()
            .into())

              ```
            

Check warning on line 91 in /home/runner/work/KernelSU/KernelSU/userspace/ksud/src/module_api.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              impl ModuleApi for ExternalModuleApi{
    fn on_post_data_fs(&self) -> Result<()>{
        Err(Command::new("/data/adb/ksu/module").args("post-fs-data").exec().into())

              ```
            
Expected:

              ```
              impl ModuleApi for ExternalModuleApi {
    fn on_post_data_fs(&self) -> Result<()> {
        Err(Command::new("/data/adb/ksu/module")
            .args("post-fs-data")
            .exec()
            .into())

              ```
            

Check warning on line 21 in /home/runner/work/KernelSU/KernelSU/userspace/ksud/src/module_api.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              fn should_use_external_module_api() -> bool{

              ```
            
Expected:

              ```
              fn should_use_external_module_api() -> bool {

              ```
            

Check warning on line 4 in /home/runner/work/KernelSU/KernelSU/userspace/ksud/src/module_api.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              use std::{process::Command, os::unix::process::CommandExt};

              ```
            
Expected:

              ```
              use std::{os::unix::process::CommandExt, process::Command};

              ```