Skip to content

Commit 8d5f59e

Browse files
committed
minor: align import style with styleguide
1 parent a6633a8 commit 8d5f59e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/ide_db/src/ty_filter.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
use std::iter;
66

7-
use hir::{Adt, Semantics, Type};
7+
use hir::Semantics;
88
use syntax::ast::{self, make};
99

1010
use crate::RootDatabase;
@@ -20,9 +20,9 @@ impl TryEnum {
2020
const ALL: [TryEnum; 2] = [TryEnum::Option, TryEnum::Result];
2121

2222
/// Returns `Some(..)` if the provided type is an enum that implements `std::ops::Try`.
23-
pub fn from_ty(sema: &Semantics<RootDatabase>, ty: &Type) -> Option<TryEnum> {
23+
pub fn from_ty(sema: &Semantics<RootDatabase>, ty: &hir::Type) -> Option<TryEnum> {
2424
let enum_ = match ty.as_adt() {
25-
Some(Adt::Enum(it)) => it,
25+
Some(hir::Adt::Enum(it)) => it,
2626
_ => return None,
2727
};
2828
TryEnum::ALL.iter().find_map(|&var| {

0 commit comments

Comments
 (0)