clippy warnings fix
This commit is contained in:
parent
a3c8ef9f74
commit
ea6b2a3850
@ -119,10 +119,10 @@ pub(crate) async fn run(cmd: PortForwardsCommand, state: &AppState) -> Result<()
|
||||
}
|
||||
})
|
||||
.await?;
|
||||
if !modified {
|
||||
cprintln!("<red!>No port with id {id} exists");
|
||||
if modified {
|
||||
cprintln!("<green!>Done!");
|
||||
} else {
|
||||
cprintln!("<green!>Done!")
|
||||
cprintln!("<red!>No port with id {id} exists");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,13 +2,12 @@ use crate::{cli::ShellCommand, utils::QuotableArgs};
|
||||
use clap::{FromArgMatches, Parser};
|
||||
use cli::Args;
|
||||
use color_eyre::Result;
|
||||
use color_print::{cformat, cprintln, cstr};
|
||||
use color_print::{cformat, cprintln};
|
||||
use connectbox::ConnectBox;
|
||||
use rustyline::{
|
||||
error::ReadlineError,
|
||||
highlight::Highlighter,
|
||||
history::{DefaultHistory, FileHistory, MemHistory},
|
||||
Completer, DefaultEditor, Editor, Helper, Hinter, Validator,
|
||||
Completer, Editor, Helper, Hinter, Validator,
|
||||
};
|
||||
use std::borrow::Cow;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user