Skip to content

Commit 5129656

Browse files
committed
Fix clippy
1 parent 1d505b6 commit 5129656

7 files changed

Lines changed: 11 additions & 11 deletions

File tree

crates/cli/src/account/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub async fn authorize_github(env: &Environment) -> Result<SmbAuthorization> {
3939
let (tx, rx): (Sender<String>, Receiver<String>) = mpsc::channel();
4040
debug!(
4141
"Setting up OAuth callback server... (tx: {:#?}, rx: {:#?})",
42-
&tx, &rx
42+
tx, rx
4343
);
4444
tokio::spawn(async move {
4545
setup_oauth_callback_server(tx);
@@ -58,7 +58,7 @@ pub async fn authorize_github(env: &Environment) -> Result<SmbAuthorization> {
5858

5959
match rx.recv() {
6060
Ok(code) => {
61-
debug!("Got code from channel: {:#?}", &code);
61+
debug!("Got code from channel: {:#?}", code);
6262
process_connect_github(*env, code).await
6363
}
6464
Err(e) => {
@@ -89,7 +89,7 @@ fn handle_connection(mut stream: TcpStream, tx: Sender<String>) {
8989
let code = group.get(1).unwrap().as_str();
9090
debug!("Code: {:#?}", code);
9191
debug!("Sending code to channel...");
92-
debug!("Channel: {:#?}", &tx);
92+
debug!("Channel: {:#?}", tx);
9393
match tx.send(code.to_string()) {
9494
Ok(_) => {
9595
debug!("Code sent to channel.");
@@ -135,7 +135,7 @@ fn handle_connection(mut stream: TcpStream, tx: Sender<String>) {
135135
}
136136
};
137137

138-
debug!("Contents: {:#?}", &contents);
138+
debug!("Contents: {:#?}", contents);
139139
let response = format!("{status_line}\r\n\r\n{contents}");
140140
stream.write_all(response.as_bytes()).unwrap();
141141
stream.flush().unwrap();

crates/cli/src/deploy/process_deploy_rust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ pub async fn process_deploy_rust(env: Environment, config: Config) -> Result<Com
176176
"{} {} \u{2192} {} ({})",
177177
console::style("Upload").white().bold(),
178178
console::style(&binary_name).dim(),
179-
console::style(format!("{}:{}", &rsync_host, remote_with_slash)).dim(),
179+
console::style(format!("{}:{}", rsync_host, remote_with_slash)).dim(),
180180
console::style(&upload_size).dim(),
181181
),
182182
);

crates/cli/src/deploy/process_deploy_swift.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ pub async fn process_deploy_swift(env: Environment, config: Config) -> Result<Co
174174
"{} {} → {} ({})",
175175
console::style("Upload").white().bold(),
176176
console::style(&binary_name).dim(),
177-
console::style(format!("{}:{}", &rsync_host, remote_path)).dim(),
177+
console::style(format!("{}:{}", rsync_host, remote_path)).dim(),
178178
console::style(format_size(binary_size)).dim(),
179179
),
180180
);

crates/cli/src/project/crud_read.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub async fn process_project_show(env: Environment, id: String) -> Result<Comman
6161
match get_project(env, client(), access_token, id).await {
6262
Ok(project) => {
6363
spinner.stop_and_persist(&succeed_symbol(), succeed_message("Loaded."));
64-
let message = succeed_message(&format!("Showing project {}.", &project.name));
64+
let message = succeed_message(&format!("Showing project {}.", project.name));
6565
show_project_detail(&project)?;
6666
Ok(CommandResult {
6767
spinner: Spinner::new(

crates/cli/src/token/get_smb_token.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use {
88
pub fn get_smb_token(env: Environment) -> Result<String> {
99
if let Some(path) = smb_token_file_path(env) {
1010
std::fs::read_to_string(path).map_err(|e| {
11-
debug!("Error while reading token: {}", &e);
11+
debug!("Error while reading token: {}", e);
1212
anyhow!("Error while reading token. Are you logged in?")
1313
})
1414
} else {

crates/smbcloud-network/src/network.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pub async fn request_login(builder: RequestBuilder) -> Result<AccountStatus, Err
112112
if LOG_RESPONSE_BODY {
113113
println!();
114114
println!("request_login: Parse >>>>");
115-
println!("{:?}", &response.status());
115+
println!("{:?}", response.status());
116116
println!("request_login: Parse >>>>");
117117
println!();
118118
}

crates/smbcloud-utils/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ pub async fn get_config() -> Result<Config> {
3535
return Ok(config);
3636
}
3737
let config_string = std::fs::read_to_string(path).map_err(|e| {
38-
debug!("Error while reading config file: {}", &e);
38+
debug!("Error while reading config file: {}", e);
3939
anyhow!("Error while reading config file. Are you logged in?")
4040
})?;
4141
let config: Config = serde_json::from_str(&config_string).map_err(|e| {
42-
debug!("Error while parsing config: {}", &e);
42+
debug!("Error while parsing config: {}", e);
4343
anyhow!("Error while parsing config. Are you logged in?")
4444
})?;
4545

0 commit comments

Comments
 (0)