From 4034ea9e4ebe2959327ddbf6c1d1e3103dd01f80 Mon Sep 17 00:00:00 2001 From: Evgenii P Date: Sun, 4 Aug 2019 07:56:29 +0700 Subject: source_binder.rs: fix order of imports --- crates/ra_hir/src/source_binder.rs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'crates/ra_hir/src/source_binder.rs') diff --git a/crates/ra_hir/src/source_binder.rs b/crates/ra_hir/src/source_binder.rs index 6a9f228b8..cf9a9e108 100644 --- a/crates/ra_hir/src/source_binder.rs +++ b/crates/ra_hir/src/source_binder.rs @@ -7,6 +7,16 @@ /// purely for "IDE needs". use std::sync::Arc; +use ra_db::{FileId, FilePosition}; +use ra_syntax::{ + algo::find_node_at_offset, + ast::{self, AstNode, NameOwner}, + AstPtr, + SyntaxKind::*, + SyntaxNode, SyntaxNodePtr, TextRange, TextUnit, +}; +use rustc_hash::{FxHashMap, FxHashSet}; + use crate::{ expr::{ self, @@ -21,15 +31,6 @@ use crate::{ MacroDef, Module, ModuleDef, Name, Path, PerNs, Resolution, Resolver, Static, Struct, Trait, Ty, }; -use ra_db::{FileId, FilePosition}; -use ra_syntax::{ - algo::find_node_at_offset, - ast::{self, AstNode, NameOwner}, - AstPtr, - SyntaxKind::*, - SyntaxNode, SyntaxNodePtr, TextRange, TextUnit, -}; -use rustc_hash::{FxHashMap, FxHashSet}; /// Locates the module by `FileId`. Picks topmost module in the file. pub fn module_from_file_id(db: &impl HirDatabase, file_id: FileId) -> Option { -- cgit v1.2.3