Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Enable `clippy::expect_fun_call` (#8768)
Marshall Bowers5fad319cb5b0
diff --git a/crates/collab/src/bin/seed.rs b/crates/collab/src/bin/seed.rsindex 632116a3632..8a998d0bf3e 100644--- a/crates/collab/src/bin/seed.rs+++ b/crates/collab/src/bin/seed.rs@@ -88,9 +88,9 @@ async fn fetch_github<T: DeserializeOwned>(client: &reqwest::Client, url: &str).header("user-agent", "zed").send().await- .expect(&format!("failed to fetch '{}'", url));+ .unwrap_or_else(|_| panic!("failed to fetch '{}'", url));response.json().await- .expect(&format!("failed to deserialize github user from '{}'", url))+ .unwrap_or_else(|_| panic!("failed to deserialize github user from '{}'", url))}diff --git a/tooling/xtask/src/main.rs b/tooling/xtask/src/main.rsindex 73acaacf34f..45e52411608 100644--- a/tooling/xtask/src/main.rs+++ b/tooling/xtask/src/main.rs@@ -90,7 +90,6 @@ fn run_clippy(args: ClippyArgs) -> Result<()> {"clippy::derivable_impls","clippy::derive_ord_xor_partial_ord","clippy::eq_op",- "clippy::expect_fun_call","clippy::explicit_counter_loop","clippy::identity_op","clippy::implied_bounds_in_impls",