Address small review comments

This commit is contained in:
Thom Chiovoloni 2020-09-09 23:12:57 -07:00
parent b65745545f
commit 4b5326b0d6

View file

@ -139,6 +139,7 @@ fn opt_ordering_defid(cx: &LateContext<'_>, ord_arg: &Expr<'_>) -> Option<DefId>
None
}
}
fn check_atomic_compare_exchange(cx: &LateContext<'_>, expr: &Expr<'_>) {
if_chain! {
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,
failure_order_arg.span,
&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,
success_ord_name,
),