From f1da9b211732e17c016258a49e6988296f13967f Mon Sep 17 00:00:00 2001 From: Erin Date: Tue, 12 Apr 2022 22:15:53 +0200 Subject: [PATCH] fmt --- ablescript/src/brian.rs | 1 - ablescript/src/parser.rs | 3 +-- ablescript/src/variables.rs | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ablescript/src/brian.rs b/ablescript/src/brian.rs index 56c43e3..183b261 100644 --- a/ablescript/src/brian.rs +++ b/ablescript/src/brian.rs @@ -17,7 +17,6 @@ //! [`interpret_with_output`]: Interpreter::interpret_with_output #![deny(missing_docs)] - // Putting this here because we still don't use the entire capabilities of this module. ~~Alex #![allow(dead_code)] diff --git a/ablescript/src/parser.rs b/ablescript/src/parser.rs index fad90be..ca2ac84 100644 --- a/ablescript/src/parser.rs +++ b/ablescript/src/parser.rs @@ -2,12 +2,11 @@ //! //! Type of this parser is recursive descent -use logos::{Lexer, Logos}; - use crate::ast::*; use crate::error::{Error, ErrorKind}; use crate::lexer::Token; use crate::variables::Value; +use logos::{Lexer, Logos}; /// Parser structure which holds lexer and metadata /// diff --git a/ablescript/src/variables.rs b/ablescript/src/variables.rs index 09572ad..17fa2c8 100644 --- a/ablescript/src/variables.rs +++ b/ablescript/src/variables.rs @@ -605,8 +605,8 @@ impl ops::Sub for Value { b.call( &args .iter() - .cloned() .take(resulting_arity) + .cloned() .chain(std::iter::repeat_with(|| ValueRef::new(Value::Nul))) .take(arity) .collect::>(),