Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhibas committed Feb 23, 2024
1 parent 83d0d20 commit 5315b98
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ authors = ["Nikolajus Krauklis <[email protected]>"]

[lints.rust]
unsafe_code = "forbid"
unused = "allow"

[lib]
crate-type = ["cdylib", "rlib"]
Expand Down
1 change: 1 addition & 0 deletions src/eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ pub fn eval<'a>(expr: &AstNode, context: &Context) -> Result<bool, &'a str> {
Ok(result)
}

#[cfg(test)]
mod tests {
use crate::{ast::Atom, parse::parse};

Expand Down
1 change: 1 addition & 0 deletions src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ pub fn parse(i: &str) -> IResult<&str, AstNode> {
alt((ws(parse_expr), ws(parse_parenthesized_expr)))(i)
}

#[cfg(test)]
mod tests {
use super::*;

Expand Down
1 change: 1 addition & 0 deletions src/parse_flagfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ pub fn parse_flagfile(i: &str) -> IResult<&str, Vec<FlagValue>> {
many0(rest)(i)
}

#[cfg(test)]
mod tests {
use super::*;

Expand Down

0 comments on commit 5315b98

Please sign in to comment.