mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-03 17:44:30 +00:00
Enable clippy::crate_in_macro_def
(#8845)
This PR enables the [`clippy::crate_in_macro_def`](https://rust-lang.github.io/rust-clippy/master/index.html#/crate_in_macro_def) rule and fixes the outstanding violations. Release Notes: - N/A
This commit is contained in:
parent
1dd4c1b057
commit
78fa596839
2 changed files with 2 additions and 3 deletions
|
@ -109,13 +109,13 @@ macro_rules! test_both_dbs {
|
||||||
($test_name:ident, $postgres_test_name:ident, $sqlite_test_name:ident) => {
|
($test_name:ident, $postgres_test_name:ident, $sqlite_test_name:ident) => {
|
||||||
#[gpui::test]
|
#[gpui::test]
|
||||||
async fn $postgres_test_name(cx: &mut gpui::TestAppContext) {
|
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;
|
$test_name(test_db.db()).await;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[gpui::test]
|
#[gpui::test]
|
||||||
async fn $sqlite_test_name(cx: &mut gpui::TestAppContext) {
|
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;
|
$test_name(test_db.db()).await;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -84,7 +84,6 @@ fn run_clippy(args: ClippyArgs) -> Result<()> {
|
||||||
"clippy::borrowed_box",
|
"clippy::borrowed_box",
|
||||||
"clippy::cast_abs_to_unsigned",
|
"clippy::cast_abs_to_unsigned",
|
||||||
"clippy::cmp_owned",
|
"clippy::cmp_owned",
|
||||||
"clippy::crate_in_macro_def",
|
|
||||||
"clippy::derive_ord_xor_partial_ord",
|
"clippy::derive_ord_xor_partial_ord",
|
||||||
"clippy::eq_op",
|
"clippy::eq_op",
|
||||||
"clippy::implied_bounds_in_impls",
|
"clippy::implied_bounds_in_impls",
|
||||||
|
|
Loading…
Reference in a new issue