clippy warnings fix
This commit is contained in:
		| @@ -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; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user