Skip to content

Commit 4b5326b

Browse files
committed
Address small review comments
1 parent b657455 commit 4b5326b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clippy_lints/src/atomic_ordering.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ fn opt_ordering_defid(cx: &LateContext<'_>, ord_arg: &Expr<'_>) -> Option<DefId>
139139
None
140140
}
141141
}
142+
142143
fn check_atomic_compare_exchange(cx: &LateContext<'_>, expr: &Expr<'_>) {
143144
if_chain! {
144145
if let ExprKind::MethodCall(ref method_path, _, args, _) = &expr.kind;
@@ -197,7 +198,7 @@ fn check_atomic_compare_exchange(cx: &LateContext<'_>, expr: &Expr<'_>) {
197198
INVALID_ATOMIC_ORDERING,
198199
failure_order_arg.span,
199200
&format!(
200-
"{}'s failure ordering may not stronger than the success ordering of `{}`",
201+
"{}'s failure ordering may not be stronger than the success ordering of `{}`",
201202
method,
202203
success_ord_name,
203204
),

0 commit comments

Comments
 (0)