Skip to content

Commit 652e471

Browse files
author
Paolo Tranquilli
committed
Rust: format
1 parent 719b5e1 commit 652e471

File tree

1 file changed

+2
-2
lines changed
  • rust/extractor/src/translate

1 file changed

+2
-2
lines changed

rust/extractor/src/translate/base.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ use log::Level;
88
use ra_ap_base_db::CrateOrigin;
99
use ra_ap_hir::db::ExpandDatabase;
1010
use ra_ap_hir::{Adt, ItemContainer, Module, Semantics, Type};
11-
use ra_ap_hir_def::ModuleId;
1211
use ra_ap_hir_def::type_ref::Mutability;
12+
use ra_ap_hir_def::ModuleId;
1313
use ra_ap_hir_expand::ExpandTo;
1414
use ra_ap_ide_db::line_index::{LineCol, LineIndex};
1515
use ra_ap_ide_db::RootDatabase;
@@ -338,7 +338,7 @@ impl<'a> Translator<'a> {
338338
.collect::<Option<Vec<_>>>()?;
339339
return Some(format!("impl {}", paths.join(" + ")));
340340
}
341-
if let Some(_) = ty.as_type_param(sema.db) {
341+
if ty.as_type_param(sema.db).is_some() {
342342
// from the canonical path perspective, we just want a special name
343343
// e.g. `crate::<_ as SomeTrait>::func`
344344
return Some("_".to_owned());

0 commit comments

Comments
 (0)