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 nom::{
|
||||
branch::alt,
|
||||
bytes::complete::{tag},
|
||||
character::{
|
||||
complete::{u64 as ccu64},
|
||||
},
|
||||
combinator::{map},
|
||||
multi::separated_list0,
|
||||
sequence::{terminated},
|
||||
IResult,
|
||||
branch::alt, bytes::complete::tag, character::complete::u64 as ccu64, combinator::map,
|
||||
multi::separated_list0, sequence::terminated, IResult,
|
||||
};
|
||||
|
||||
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)?;
|
||||
Ok((
|
||||
i,
|
||||
(
|
||||
id.to_string(),
|
||||
Primitive::Assignment(assigned_variable.to_string()),
|
||||
),
|
||||
(id, Primitive::Assignment(assigned_variable.to_string())),
|
||||
))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user