Skip to content

Commit

Permalink
♻️ Fix compiler warnings
Browse files Browse the repository at this point in the history
semver: chore
  • Loading branch information
Somfic committed Jan 3, 2025
1 parent cb8ae3c commit dee0a83
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub mod parser;

const INPUT: &str = "
fn main() {
let a = |a ~ int| a * a;
let a = |a ~ int| { 1 + 1; a };
let b = a;
Expand Down
2 changes: 1 addition & 1 deletion src/parser/expression/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ pub fn call<'de>(
}

pub fn lambda<'de>(parser: &mut Parser<'de>) -> Result<Expression<'de>> {
let pipe = parser
parser
.lexer
.expect(TokenKind::Pipe, "expected a pipe before lambda arguments")?;

Expand Down
1 change: 0 additions & 1 deletion src/parser/typechecker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use super::ast::{untyped, Type, TypeValue};
use crate::parser::ast::CombineSpan;
use environment::Environment;
use miette::{MietteDiagnostic, Result, SourceSpan};
use std::{borrow::Cow, collections::HashMap};

mod environment;
#[cfg(test)]
Expand Down

0 comments on commit dee0a83

Please sign in to comment.