ksud: clippy

This commit is contained in:
tiann
2023-02-06 09:16:15 +08:00
parent aa7a00b299
commit ad4d8e939e

View File

@@ -26,8 +26,14 @@ use zip_extensions::zip_extract_file_to_memory;
use std::os::unix::{prelude::PermissionsExt, process::CommandExt}; use std::os::unix::{prelude::PermissionsExt, process::CommandExt};
const INSTALLER_CONTENT: &str = include_str!("./installer.sh"); const INSTALLER_CONTENT: &str = include_str!("./installer.sh");
const INSTALL_MODULE_SCRIPT: &str = const INSTALL_MODULE_SCRIPT: &str = concatcp!(
concatcp!(INSTALLER_CONTENT, "\n", "install_module", "\n", "exit 0", "\n"); INSTALLER_CONTENT,
"\n",
"install_module",
"\n",
"exit 0",
"\n"
);
fn exec_install_script(module_file: &str) -> Result<()> { fn exec_install_script(module_file: &str) -> Result<()> {
let realpath = std::fs::canonicalize(module_file) let realpath = std::fs::canonicalize(module_file)