Skip to content

Commit

Permalink
better usage of default for PluginSuite (#5537)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger authored May 10, 2024
1 parent d5230d0 commit cd81050
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/cairo-lang-semantic/src/inline_macros/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ use crate::plugin::PluginSuite;

/// Gets the default plugin suite to load into the Cairo compiler.
pub fn get_default_plugin_suite() -> PluginSuite {
let mut suite = PluginSuite {
plugins: get_base_plugins(),
inline_macro_plugins: Default::default(),
analyzer_plugins: Default::default(),
};
let mut suite = PluginSuite { plugins: get_base_plugins(), ..Default::default() };
suite
.add_inline_macro_plugin::<ArrayMacro>()
.add_inline_macro_plugin::<AssertMacro>()
Expand Down

0 comments on commit cd81050

Please sign in to comment.