Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Enable `clippy::crate_in_macro_def` (#8845)

Marshall Bowers78fa596839bc
diff --git a/crates/collab/src/db/tests.rs b/crates/collab/src/db/tests.rs
index b07f7a84e19..35da659e545 100644
--- a/crates/collab/src/db/tests.rs
+++ b/crates/collab/src/db/tests.rs
@@ -109,13 +109,13 @@ macro_rules! test_both_dbs {
($test_name:ident, $postgres_test_name:ident, $sqlite_test_name:ident) => {
#[gpui::test]
async fn $postgres_test_name(cx: &mut gpui::TestAppContext) {
- let test_db = crate::db::TestDb::postgres(cx.executor().clone());
+ let test_db = $crate::db::TestDb::postgres(cx.executor().clone());
$test_name(test_db.db()).await;
}
#[gpui::test]
async fn $sqlite_test_name(cx: &mut gpui::TestAppContext) {
- let test_db = crate::db::TestDb::sqlite(cx.executor().clone());
+ let test_db = $crate::db::TestDb::sqlite(cx.executor().clone());
$test_name(test_db.db()).await;
}
};
diff --git a/tooling/xtask/src/main.rs b/tooling/xtask/src/main.rs
index d93d2b7e5ef..44947a4367e 100644
--- a/tooling/xtask/src/main.rs
+++ b/tooling/xtask/src/main.rs
@@ -84,7 +84,6 @@ fn run_clippy(args: ClippyArgs) -> Result<()> {
"clippy::borrowed_box",
"clippy::cast_abs_to_unsigned",
"clippy::cmp_owned",
- "clippy::crate_in_macro_def",
"clippy::derive_ord_xor_partial_ord",
"clippy::eq_op",
"clippy::implied_bounds_in_impls",