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 14, 2022
1 parent 9b3a54a commit 0c72334
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/needless_option_take.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,
NEEDLESS_OPTION_TAKE,
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 0c72334

Please sign in to comment.