Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosAndradeV committed Dec 30, 2024
1 parent 1ce2c1f commit 3a922c6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 0 additions & 8 deletions chs_ast/src/nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,6 @@ impl Expression {
unreachable!("aaaaa")
}
}

pub fn to_list(self) -> Expression {
if let Expression::ExprList(_) = self {
self
} else {
Expression::ExprList(vec![self])
}
}
}

#[derive(Debug)]
Expand Down
1 change: 1 addition & 0 deletions chs_util/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use core::fmt;
use std::path::PathBuf;
pub struct CHSError(pub String);
pub type CHSResult<T> = Result<T, CHSError>;

impl fmt::Debug for CHSError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
Expand Down

0 comments on commit 3a922c6

Please sign in to comment.