Skip to content

Commit

Permalink
fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Fadhil committed Sep 30, 2024
1 parent 3cbb0dd commit 00d38a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions cli/src/commands/application/instances/connect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,8 @@ pub async fn handle_connect(
let _ = wk_client
.destroy_livebook(&application, &namespace, &version)
.await
.map_err(|err| {
.inspect_err(|_err| {
eprintln!("Failed to destroy the livebook instance.");
err
})?;

exiting_loader.finish_and_clear();
Expand Down
5 changes: 1 addition & 4 deletions telemetry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,7 @@ impl Telemetry {
let telemetry_data = {
let content = std::fs::read_to_string(telemetry_file_path);
match content {
Ok(data) => match serde_json::from_str::<Vec<TelemetryData>>(&data) {
Ok(data) => data,
Err(_) => Vec::new(),
},
Ok(data) => serde_json::from_str::<Vec<TelemetryData>>(&data).unwrap_or_default(),
Err(_) => Vec::new(),
}
};
Expand Down

0 comments on commit 00d38a6

Please sign in to comment.