changed line order

pull/7/head
ondra05 2022-04-02 14:13:49 +02:00
parent 3bb1039e1d
commit ddb15ba540
1 changed files with 5 additions and 3 deletions

View File

@ -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<usize>;
@ -74,7 +73,10 @@ impl Assignable {
}
}
fn from_index(mut buf: Spanned<Expr>, index: Spanned<Expr>) -> Result<Assignable, InvalidAssignable> {
fn from_index(
mut buf: Spanned<Expr>,
index: Spanned<Expr>,
) -> Result<Assignable, InvalidAssignable> {
let mut indices = vec![index];
let ident = loop {
match buf.item {