Skip to content

Commit cf41785

Browse files
committed
Fix compile error from library change
1 parent f61ba63 commit cf41785

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1491,6 +1491,7 @@ Released 2018-09-13
14911491
[`large_stack_arrays`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_stack_arrays
14921492
[`len_without_is_empty`]: https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty
14931493
[`len_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
1494+
[`let_and_return`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
14941495
[`let_underscore_lock`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_lock
14951496
[`let_underscore_must_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_must_use
14961497
[`let_unit_value`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value

clippy_lints/src/option_if_let_else.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ declare_lint_pass!(OptionIfLetElse => [OPTION_IF_LET_ELSE]);
7171

7272
/// Returns true iff the given expression is the result of calling `Result::ok`
7373
fn is_result_ok(cx: &LateContext<'_, '_>, expr: &'_ Expr<'_>) -> bool {
74-
if let ExprKind::MethodCall(ref path, _, &[ref receiver]) = &expr.kind {
74+
if let ExprKind::MethodCall(ref path, _, &[ref receiver], _) = &expr.kind {
7575
path.ident.name.to_ident_string() == "ok" && match_type(cx, &cx.tables.expr_ty(&receiver), &paths::RESULT)
7676
} else {
7777
false

0 commit comments

Comments
 (0)