Skip to content

Commit

Permalink
refactor: simplify plugin definition
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed Jul 28, 2024
1 parent 68093bd commit 2f83a80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dprint_plugin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod config;
#[cfg(target_arch = "wasm32")]
type Configuration = FormatOptions;

pub struct MarkupFmtPluginHandler {}
pub struct MarkupFmtPluginHandler;

impl SyncPluginHandler<FormatOptions> for MarkupFmtPluginHandler {
fn plugin_info(&mut self) -> SyncPluginInfo {
Expand Down Expand Up @@ -136,4 +136,4 @@ impl SyncPluginHandler<FormatOptions> for MarkupFmtPluginHandler {
}

#[cfg(target_arch = "wasm32")]
generate_plugin_code!(MarkupFmtPluginHandler, MarkupFmtPluginHandler {});
generate_plugin_code!(MarkupFmtPluginHandler, MarkupFmtPluginHandler);

0 comments on commit 2f83a80

Please sign in to comment.