Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mfahampshire committed Dec 9, 2024
1 parent 21508df commit 8cc2343
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions documentation/autodoc/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ fn main() -> io::Result<()> {
writeln!(
file,
"# {} Binary Commands (Autogenerated)",
format!("`{}`", last_word.unwrap())
format_args!("`{}`", last_word.unwrap())
)?;
writeln!(
file,
Expand All @@ -152,7 +152,7 @@ fn main() -> io::Result<()> {
writeln!(
file,
"# {} Binary Commands (Autogenerated)",
format!("`{}`", last_word.unwrap())
format_args!("`{}`", last_word.unwrap())
)?;
writeln!(
file,
Expand Down Expand Up @@ -190,9 +190,10 @@ fn execute_command_own_file(main_command: &str, subcommand: &str) -> io::Result<
// this check is basically checking for the rare commands (rn just one) that start a process with no params
// perhaps if this list grows we could just add a timeout and shunt the running and writing
// into a thread with a timeout or something but for right now its fine / thats overkill
if get_last_word_from_filepath(main_command).unwrap() == "nym-node" && subcommand == "run"
|| get_last_word_from_filepath(main_command).unwrap() == "nym-api" && subcommand == "run"
|| get_last_word_from_filepath(main_command).unwrap() == "nymvisor" && subcommand == "run"
if (get_last_word_from_filepath(main_command).unwrap() == "nymvisor"
|| get_last_word_from_filepath(main_command).unwrap() == "nym-api"
|| get_last_word_from_filepath(main_command).unwrap() == "nym-node")
&& subcommand == "run"
{
info!("SKIPPING {} {}", main_command, subcommand);
} else {
Expand Down

0 comments on commit 8cc2343

Please sign in to comment.