Skip to content

Commit

Permalink
fixup! amend! amend! rules/minion: apply weighted sum more often (neg…
Browse files Browse the repository at this point in the history
…atives, equality)
  • Loading branch information
niklasdewally committed Jan 17, 2025
1 parent 0ff9acd commit c63367a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/conjure_core/src/rules/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ pub fn is_all_constant(expression: &Expr) -> bool {
/// # Returns
///
/// `Some(Vec<Atom>)` if the vectors direct children expressions are all atomic, otherwise `None`.
#[allow(dead_code)]
pub fn expressions_to_atoms(exprs: &Vec<Expr>) -> Option<Vec<Atom>> {
let mut atoms: Vec<Atom> = vec![];
for expr in exprs {
Expand Down

0 comments on commit c63367a

Please sign in to comment.