diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-01-15 14:36:45 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-01-15 16:58:08 +0100 |
| commit | fc725d24908fbe2ba69e0994d13367438fb07db8 (patch) | |
| tree | b2a80421af9c7f339b1c1106faea8fe621eca42a | |
| parent | e85c4984dbca6cb1bf579accf7d0ad694e619eb8 (diff) | |
| download | sylt-fc725d24908fbe2ba69e0994d13367438fb07db8.tar.gz | |
reorder imports
| -rw-r--r-- | src/compiler.rs | 2 | ||||
| -rw-r--r-- | src/error.rs | 3 | ||||
| -rw-r--r-- | src/typer.rs | 9 | ||||
| -rw-r--r-- | src/vm.rs | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/src/compiler.rs b/src/compiler.rs index e32270e..dba0174 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -1,9 +1,9 @@ use std::path::{Path, PathBuf}; use std::rc::Rc; +use crate::error::{Error, ErrorKind}; use crate::tokenizer::{Token, TokenStream}; use crate::vm::{Value, Block, Op}; -use crate::error::{Error, ErrorKind}; macro_rules! nextable_enum { ( $name:ident { $( $thing:ident ),* } ) => { diff --git a/src/error.rs b/src/error.rs index 6d8a14c..2bd0fd1 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,8 +1,9 @@ use std::fmt; use std::path::PathBuf; -use crate::vm::{Op, Value}; + use crate::compiler::Type; use crate::tokenizer::Token; +use crate::vm::{Op, Value}; #[derive(Debug, Clone)] pub enum ErrorKind { diff --git a/src/typer.rs b/src/typer.rs index d7b76b9..7040bb2 100644 --- a/src/typer.rs +++ b/src/typer.rs @@ -1,13 +1,12 @@ -use std::fmt::Debug; -use std::rc::Rc; use owo_colors::OwoColorize; -use std::path::PathBuf; use std::collections::HashSet; +use std::fmt::Debug; +use std::path::PathBuf; +use std::rc::Rc; use crate::compiler::Type; -use crate::vm::Value; -use crate::vm::{Op, Block}; use crate::error::{Error, ErrorKind}; +use crate::vm::{Block, Op, Value}; macro_rules! error { ( $thing:expr, $kind:expr) => { @@ -1,8 +1,8 @@ +use owo_colors::OwoColorize; +use std::collections::HashMap; use std::fmt::Debug; use std::path::{Path, PathBuf}; use std::rc::Rc; -use std::collections::HashMap; -use owo_colors::OwoColorize; use crate::compiler::Type; use crate::error::{Error, ErrorKind}; |
