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

View File

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