forked from AbleScript/ablescript
fmt
This commit is contained in:
parent
de3b6dc048
commit
35caa085f8
|
@ -17,7 +17,6 @@
|
||||||
//! [`interpret_with_output`]: Interpreter::interpret_with_output
|
//! [`interpret_with_output`]: Interpreter::interpret_with_output
|
||||||
|
|
||||||
#![deny(missing_docs)]
|
#![deny(missing_docs)]
|
||||||
|
|
||||||
// Putting this here because we still don't use the entire capabilities of this module. ~~Alex
|
// Putting this here because we still don't use the entire capabilities of this module. ~~Alex
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,11 @@
|
||||||
//!
|
//!
|
||||||
//! Type of this parser is recursive descent
|
//! Type of this parser is recursive descent
|
||||||
|
|
||||||
use logos::{Lexer, Logos};
|
|
||||||
|
|
||||||
use crate::ast::*;
|
use crate::ast::*;
|
||||||
use crate::error::{Error, ErrorKind};
|
use crate::error::{Error, ErrorKind};
|
||||||
use crate::lexer::Token;
|
use crate::lexer::Token;
|
||||||
use crate::variables::Value;
|
use crate::variables::Value;
|
||||||
|
use logos::{Lexer, Logos};
|
||||||
|
|
||||||
/// Parser structure which holds lexer and metadata
|
/// Parser structure which holds lexer and metadata
|
||||||
///
|
///
|
||||||
|
|
|
@ -605,8 +605,8 @@ impl ops::Sub for Value {
|
||||||
b.call(
|
b.call(
|
||||||
&args
|
&args
|
||||||
.iter()
|
.iter()
|
||||||
.cloned()
|
|
||||||
.take(resulting_arity)
|
.take(resulting_arity)
|
||||||
|
.cloned()
|
||||||
.chain(std::iter::repeat_with(|| ValueRef::new(Value::Nul)))
|
.chain(std::iter::repeat_with(|| ValueRef::new(Value::Nul)))
|
||||||
.take(arity)
|
.take(arity)
|
||||||
.collect::<Vec<_>>(),
|
.collect::<Vec<_>>(),
|
||||||
|
|
Loading…
Reference in a new issue