Skip to content

Commit 4ea9af3

Browse files
author
Daniel Smith
committed
Convert the await holding lints to correctness
1 parent 85d7655 commit 4ea9af3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clippy_lints/src/await_holding_invalid.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ declare_clippy_lint! {
4545
/// }
4646
/// ```
4747
pub AWAIT_HOLDING_LOCK,
48-
pedantic,
48+
correctness,
4949
"Inside an async function, holding a MutexGuard while calling await"
5050
}
5151

@@ -126,7 +126,7 @@ declare_clippy_lint! {
126126
/// }
127127
/// ```
128128
pub AWAIT_HOLDING_REFCELL_REF,
129-
pedantic,
129+
correctness,
130130
"Inside an async function, holding a RefCell ref while calling await"
131131
}
132132

src/lintlist/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
6161
},
6262
Lint {
6363
name: "await_holding_lock",
64-
group: "pedantic",
64+
group: "correctness",
6565
desc: "Inside an async function, holding a MutexGuard while calling await",
6666
deprecation: None,
6767
module: "await_holding_invalid",
6868
},
6969
Lint {
7070
name: "await_holding_refcell_ref",
71-
group: "pedantic",
71+
group: "correctness",
7272
desc: "Inside an async function, holding a RefCell ref while calling await",
7373
deprecation: None,
7474
module: "await_holding_invalid",

0 commit comments

Comments
 (0)