Fix bogus tidy errors
This commit is contained in:
parent
bec8dbdb60
commit
dcf7ce8356
1 changed files with 3 additions and 0 deletions
|
@ -61,6 +61,7 @@
|
||||||
),
|
),
|
||||||
on(
|
on(
|
||||||
_Self = "unsafe fn",
|
_Self = "unsafe fn",
|
||||||
|
// SAFETY: tidy is not smart enough to tell that the below unsafe block is a string
|
||||||
note = "unsafe functions must be wrapped in closures: `|| unsafe {{ /* code */ }}`"
|
note = "unsafe functions must be wrapped in closures: `|| unsafe {{ /* code */ }}`"
|
||||||
),
|
),
|
||||||
message = "expected a `{Fn}<{Args}>` closure, found `{Self}`",
|
message = "expected a `{Fn}<{Args}>` closure, found `{Self}`",
|
||||||
|
@ -145,6 +146,7 @@ pub trait Fn<Args>: FnMut<Args> {
|
||||||
),
|
),
|
||||||
on(
|
on(
|
||||||
_Self = "unsafe fn",
|
_Self = "unsafe fn",
|
||||||
|
// SAFETY: tidy is not smart enough to tell that the below unsafe block is a string
|
||||||
note = "unsafe functions must be wrapped in closures: `|| unsafe {{ /* code */ }}`"
|
note = "unsafe functions must be wrapped in closures: `|| unsafe {{ /* code */ }}`"
|
||||||
),
|
),
|
||||||
message = "expected a `{FnMut}<{Args}>` closure, found `{Self}`",
|
message = "expected a `{FnMut}<{Args}>` closure, found `{Self}`",
|
||||||
|
@ -221,6 +223,7 @@ pub trait FnMut<Args>: FnOnce<Args> {
|
||||||
),
|
),
|
||||||
on(
|
on(
|
||||||
_Self = "unsafe fn",
|
_Self = "unsafe fn",
|
||||||
|
// SAFETY: tidy is not smart enough to tell that the below unsafe block is a string
|
||||||
note = "unsafe functions must be wrapped in closures: `|| unsafe {{ /* code */ }}`"
|
note = "unsafe functions must be wrapped in closures: `|| unsafe {{ /* code */ }}`"
|
||||||
),
|
),
|
||||||
message = "expected a `{FnOnce}<{Args}>` closure, found `{Self}`",
|
message = "expected a `{FnOnce}<{Args}>` closure, found `{Self}`",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue