From 171c176833c197bfd1b266940bd2a8c3d4d52cd5 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 15 Oct 2018 19:55:32 +0300 Subject: Run cargo fix --- crates/ra_syntax/src/lexer/comments.rs | 4 ++-- crates/ra_syntax/src/lexer/mod.rs | 2 +- crates/ra_syntax/src/lexer/numbers.rs | 6 +++--- crates/ra_syntax/src/lexer/ptr.rs | 2 +- crates/ra_syntax/src/lexer/strings.rs | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) (limited to 'crates/ra_syntax/src/lexer') diff --git a/crates/ra_syntax/src/lexer/comments.rs b/crates/ra_syntax/src/lexer/comments.rs index eb417c2dc..afe6886a1 100644 --- a/crates/ra_syntax/src/lexer/comments.rs +++ b/crates/ra_syntax/src/lexer/comments.rs @@ -1,6 +1,6 @@ -use lexer::ptr::Ptr; +use crate::lexer::ptr::Ptr; -use SyntaxKind::{self, *}; +use crate::SyntaxKind::{self, *}; pub(crate) fn scan_shebang(ptr: &mut Ptr) -> bool { if ptr.at_str("!/") { diff --git a/crates/ra_syntax/src/lexer/mod.rs b/crates/ra_syntax/src/lexer/mod.rs index 3e11db88b..9dc0b63d6 100644 --- a/crates/ra_syntax/src/lexer/mod.rs +++ b/crates/ra_syntax/src/lexer/mod.rs @@ -4,7 +4,7 @@ mod numbers; mod ptr; mod strings; -use { +use crate::{ SyntaxKind::{self, *}, TextUnit, }; diff --git a/crates/ra_syntax/src/lexer/numbers.rs b/crates/ra_syntax/src/lexer/numbers.rs index 22e7d4e99..46daf5e52 100644 --- a/crates/ra_syntax/src/lexer/numbers.rs +++ b/crates/ra_syntax/src/lexer/numbers.rs @@ -1,7 +1,7 @@ -use lexer::classes::*; -use lexer::ptr::Ptr; +use crate::lexer::classes::*; +use crate::lexer::ptr::Ptr; -use SyntaxKind::{self, *}; +use crate::SyntaxKind::{self, *}; pub(crate) fn scan_number(c: char, ptr: &mut Ptr) -> SyntaxKind { if c == '0' { diff --git a/crates/ra_syntax/src/lexer/ptr.rs b/crates/ra_syntax/src/lexer/ptr.rs index c9a5354ea..c4708cb1c 100644 --- a/crates/ra_syntax/src/lexer/ptr.rs +++ b/crates/ra_syntax/src/lexer/ptr.rs @@ -1,4 +1,4 @@ -use TextUnit; +use crate::TextUnit; use std::str::Chars; diff --git a/crates/ra_syntax/src/lexer/strings.rs b/crates/ra_syntax/src/lexer/strings.rs index 5ff483d14..bceacdcac 100644 --- a/crates/ra_syntax/src/lexer/strings.rs +++ b/crates/ra_syntax/src/lexer/strings.rs @@ -1,6 +1,6 @@ -use SyntaxKind::{self, *}; +use crate::SyntaxKind::{self, *}; -use lexer::ptr::Ptr; +use crate::lexer::ptr::Ptr; pub(crate) fn is_string_literal_start(c: char, c1: Option, c2: Option) -> bool { match (c, c1, c2) { -- cgit v1.2.3