More formatting and clippy fixes
This commit is contained in:
parent
b363349dd2
commit
92e98bbdcb
11
src/basic.rs
11
src/basic.rs
@ -1,15 +1,8 @@
|
|||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
|
||||||
use nom::{
|
use nom::{
|
||||||
branch::alt,
|
branch::alt, bytes::complete::tag, character::complete::u64 as ccu64, combinator::map,
|
||||||
bytes::complete::{tag},
|
multi::separated_list0, sequence::terminated, IResult,
|
||||||
character::{
|
|
||||||
complete::{u64 as ccu64},
|
|
||||||
},
|
|
||||||
combinator::{map},
|
|
||||||
multi::separated_list0,
|
|
||||||
sequence::{terminated},
|
|
||||||
IResult,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::parsers::{generic, variables};
|
use crate::parsers::{generic, variables};
|
||||||
|
@ -42,10 +42,7 @@ pub fn parse_assignment(i: &str) -> IResult<&str, (String, Primitive)> {
|
|||||||
let (i, assigned_variable) = consume_line(i)?;
|
let (i, assigned_variable) = consume_line(i)?;
|
||||||
Ok((
|
Ok((
|
||||||
i,
|
i,
|
||||||
(
|
(id, Primitive::Assignment(assigned_variable.to_string())),
|
||||||
id.to_string(),
|
|
||||||
Primitive::Assignment(assigned_variable.to_string()),
|
|
||||||
),
|
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user