diff options
| author | Terry Sun <terrynsun@gmail.com> | 2021-10-27 10:58:31 -0700 |
|---|---|---|
| committer | Terry Sun <terrynsun@gmail.com> | 2021-10-27 10:58:31 -0700 |
| commit | d800a1bc93e4b2eaeb0b196a9de41f74f8272680 (patch) | |
| tree | bcd2c5e32378216b1db9eeb75bce46a39e036b0d | |
| parent | 3bbd61d67421192c898956e6f6ada615d90aa4ee (diff) | |
| download | rust-d800a1bc93e4b2eaeb0b196a9de41f74f8272680.tar.gz rust-d800a1bc93e4b2eaeb0b196a9de41f74f8272680.zip | |
fixup! rustfmt
| -rw-r--r-- | crates/ide_assists/src/handlers/replace_turbofish_with_explicit_type.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/ide_assists/src/handlers/replace_turbofish_with_explicit_type.rs b/crates/ide_assists/src/handlers/replace_turbofish_with_explicit_type.rs index 46e03e20da0..dc3c860d7ed 100644 --- a/crates/ide_assists/src/handlers/replace_turbofish_with_explicit_type.rs +++ b/crates/ide_assists/src/handlers/replace_turbofish_with_explicit_type.rs @@ -35,9 +35,7 @@ pub(crate) fn replace_turbofish_with_explicit_type( let initializer = let_stmt.initializer()?; let generic_args = match &initializer { - Expr::MethodCallExpr(ce) => { - ce.generic_arg_list()? - } + Expr::MethodCallExpr(ce) => ce.generic_arg_list()?, Expr::CallExpr(ce) => { if let Expr::PathExpr(pe) = ce.expr()? { pe.path()?.segment()?.generic_arg_list()? |
