@smbcloud / cli / commits / 5129656

Fix clippy

keypair34 committed Jul 10, 2026 at 13:14 UTC 5129656e6c75abbc460da900eb8f3d1828da74fd
7 files changed +11 -11
crates/cli/src/account/lib.rs
+4 -4
@@ -39,7 +39,7 @@ pub async fn authorize_github(env: &Environment) -> Result<SmbAuthorization> {
39 let (tx, rx): (Sender<String>, Receiver<String>) = mpsc::channel();
40 debug!(
41 "Setting up OAuth callback server... (tx: {:#?}, rx: {:#?})",
42 - &tx, &rx
42 + tx, rx
43 );
44 tokio::spawn(async move {
45 setup_oauth_callback_server(tx);
@@ -58,7 +58,7 @@ pub async fn authorize_github(env: &Environment) -> Result<SmbAuthorization> {
58
59 match rx.recv() {
60 Ok(code) => {
61 - debug!("Got code from channel: {:#?}", &code);
61 + debug!("Got code from channel: {:#?}", code);
62 process_connect_github(*env, code).await
63 }
64 Err(e) => {
@@ -89,7 +89,7 @@ fn handle_connection(mut stream: TcpStream, tx: Sender<String>) {
89 let code = group.get(1).unwrap().as_str();
90 debug!("Code: {:#?}", code);
91 debug!("Sending code to channel...");
92 - debug!("Channel: {:#?}", &tx);
92 + debug!("Channel: {:#?}", tx);
93 match tx.send(code.to_string()) {
94 Ok(_) => {
95 debug!("Code sent to channel.");
@@ -135,7 +135,7 @@ fn handle_connection(mut stream: TcpStream, tx: Sender<String>) {
135 }
136 };
137
138 - debug!("Contents: {:#?}", &contents);
138 + debug!("Contents: {:#?}", contents);
139 let response = format!("{status_line}\r\n\r\n{contents}");
140 stream.write_all(response.as_bytes()).unwrap();
141 stream.flush().unwrap();
crates/cli/src/deploy/process_deploy_rust.rs
+1 -1
@@ -176,7 +176,7 @@ pub async fn process_deploy_rust(env: Environment, config: Config) -> Result<Com
176 "{} {} \u{2192} {} ({})",
177 console::style("Upload").white().bold(),
178 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(),
180 console::style(&upload_size).dim(),
181 ),
182 );
crates/cli/src/deploy/process_deploy_swift.rs
+1 -1
@@ -174,7 +174,7 @@ pub async fn process_deploy_swift(env: Environment, config: Config) -> Result<Co
174 "{} {} → {} ({})",
175 console::style("Upload").white().bold(),
176 console::style(&binary_name).dim(),
177 - console::style(format!("{}:{}", &rsync_host, remote_path)).dim(),
177 + console::style(format!("{}:{}", rsync_host, remote_path)).dim(),
178 console::style(format_size(binary_size)).dim(),
179 ),
180 );
crates/cli/src/project/crud_read.rs
+1 -1
@@ -61,7 +61,7 @@ pub async fn process_project_show(env: Environment, id: String) -> Result<Comman
61 match get_project(env, client(), access_token, id).await {
62 Ok(project) => {
63 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));
65 show_project_detail(&project)?;
66 Ok(CommandResult {
67 spinner: Spinner::new(
crates/cli/src/token/get_smb_token.rs
+1 -1
@@ -8,7 +8,7 @@ use {
8 pub fn get_smb_token(env: Environment) -> Result<String> {
9 if let Some(path) = smb_token_file_path(env) {
10 std::fs::read_to_string(path).map_err(|e| {
11 - debug!("Error while reading token: {}", &e);
11 + debug!("Error while reading token: {}", e);
12 anyhow!("Error while reading token. Are you logged in?")
13 })
14 } else {
crates/smbcloud-network/src/network.rs
+1 -1
@@ -112,7 +112,7 @@ pub async fn request_login(builder: RequestBuilder) -> Result<AccountStatus, Err
112 if LOG_RESPONSE_BODY {
113 println!();
114 println!("request_login: Parse >>>>");
115 - println!("{:?}", &response.status());
115 + println!("{:?}", response.status());
116 println!("request_login: Parse >>>>");
117 println!();
118 }
crates/smbcloud-utils/src/lib.rs
+2 -2
@@ -35,11 +35,11 @@ pub async fn get_config() -> Result<Config> {
35 return Ok(config);
36 }
37 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);
39 anyhow!("Error while reading config file. Are you logged in?")
40 })?;
41 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);
43 anyhow!("Error while parsing config. Are you logged in?")
44 })?;
45