Skip to content

Commit

Permalink
chore: made AstSerdeOptions constructor const fn
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbinth committed Dec 3, 2023
1 parent 3d3f01d commit 51aa5c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assembly/src/ast/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub struct AstSerdeOptions {
}

impl AstSerdeOptions {
pub fn new(serialize_imports: bool) -> Self {
pub const fn new(serialize_imports: bool) -> Self {
Self { serialize_imports }
}
}
Expand Down

0 comments on commit 51aa5c2

Please sign in to comment.