From 3bb8af5b3f2717698a58c23a772aa001603c980a Mon Sep 17 00:00:00 2001 From: Erin Date: Sat, 2 Apr 2022 14:13:49 +0200 Subject: [PATCH] changed line order --- ablescript/src/ast.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ablescript/src/ast.rs b/ablescript/src/ast.rs index 6b16cbaf..de68ed93 100644 --- a/ablescript/src/ast.rs +++ b/ablescript/src/ast.rs @@ -8,9 +8,8 @@ //! just plain subroutines and they do not return any value, //! so their calls are statements. -use std::{fmt::Debug, hash::Hash}; - use crate::variables::Value; +use std::{fmt::Debug, hash::Hash}; type Span = std::ops::Range; @@ -74,7 +73,10 @@ impl Assignable { } } - fn from_index(mut buf: Spanned, index: Spanned) -> Result { + fn from_index( + mut buf: Spanned, + index: Spanned, + ) -> Result { let mut indices = vec![index]; let ident = loop { match buf.item {