diff options
| author | Thom Chiovoloni <chiovolonit@gmail.com> | 2020-09-09 23:12:57 -0700 |
|---|---|---|
| committer | Thom Chiovoloni <chiovolonit@gmail.com> | 2020-09-09 23:12:57 -0700 |
| commit | 4b5326b0d62104801f0b33c4d8f3749d93eebc02 (patch) | |
| tree | 2bde7c476f8cf3f77f9d84ae74299a90ca6f831e | |
| parent | b65745545f410b31c5ecdd33a8299a65da578af2 (diff) | |
| download | rust-4b5326b0d62104801f0b33c4d8f3749d93eebc02.tar.gz rust-4b5326b0d62104801f0b33c4d8f3749d93eebc02.zip | |
Address small review comments
| -rw-r--r-- | clippy_lints/src/atomic_ordering.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clippy_lints/src/atomic_ordering.rs b/clippy_lints/src/atomic_ordering.rs index d4e070b0c24..614e33a06da 100644 --- a/clippy_lints/src/atomic_ordering.rs +++ b/clippy_lints/src/atomic_ordering.rs @@ -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, ), |
