Skip to content

Commit

Permalink
Modify lint description
Browse files Browse the repository at this point in the history
  • Loading branch information
b-ncMN committed Apr 11, 2022
1 parent f9f787c commit 1c3f544
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clippy_lints/src/methods/option_take_on_temporary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, recv: &'
cx,
OPTION_TAKE_ON_TEMPORARY,
expr.span,
"Called `Option::take()` on a temporary value",
"called `Option::take()` on a temporary value",
"try",
format!(
"{}",
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/option_take_on_temporary.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error: Called `Option::take()` on a temporary value
error: called `Option::take()` on a temporary value
--> $DIR/option_take_on_temporary.rs:6:5
|
LL | x.as_ref().take();
Expand Down

0 comments on commit 1c3f544

Please sign in to comment.