mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-03-03 06:47:19 +00:00
Address small review comments
This commit is contained in:
parent
b65745545f
commit
4b5326b0d6
1 changed files with 2 additions and 1 deletions
|
@ -139,6 +139,7 @@ fn opt_ordering_defid(cx: &LateContext<'_>, ord_arg: &Expr<'_>) -> Option<DefId>
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn check_atomic_compare_exchange(cx: &LateContext<'_>, expr: &Expr<'_>) {
|
fn check_atomic_compare_exchange(cx: &LateContext<'_>, expr: &Expr<'_>) {
|
||||||
if_chain! {
|
if_chain! {
|
||||||
if let ExprKind::MethodCall(ref method_path, _, args, _) = &expr.kind;
|
if let ExprKind::MethodCall(ref method_path, _, args, _) = &expr.kind;
|
||||||
|
@ -197,7 +198,7 @@ fn check_atomic_compare_exchange(cx: &LateContext<'_>, expr: &Expr<'_>) {
|
||||||
INVALID_ATOMIC_ORDERING,
|
INVALID_ATOMIC_ORDERING,
|
||||||
failure_order_arg.span,
|
failure_order_arg.span,
|
||||||
&format!(
|
&format!(
|
||||||
"{}'s failure ordering may not stronger than the success ordering of `{}`",
|
"{}'s failure ordering may not be stronger than the success ordering of `{}`",
|
||||||
method,
|
method,
|
||||||
success_ord_name,
|
success_ord_name,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Reference in a new issue