aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/compiler.rs2
-rw-r--r--src/error.rs3
-rw-r--r--src/typer.rs9
-rw-r--r--src/vm.rs4
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) => {
diff --git a/src/vm.rs b/src/vm.rs
index daf2ead..33ae9c9 100644
--- a/src/vm.rs
+++ b/src/vm.rs
@@ -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};