More formatting and clippy fixes

This commit is contained in:
Lewis Dale 2023-01-20 16:50:41 +00:00
parent b363349dd2
commit 92e98bbdcb
2 changed files with 3 additions and 13 deletions

View File

@ -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};

View File

@ -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())),
))
}