Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
bram209 committed Oct 7, 2024
1 parent 3f96d22 commit ac15e54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions formatter/src/formatter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub use mac::{ParentIndent, ViewMacro};

use serde::Deserialize;
use serde::Serialize;
use syn::{Expr, Generics, Pat};
use syn::{Generics, Pat};

#[derive(Clone, Copy, Debug, PartialEq, Deserialize, Serialize)]
pub enum ClosingTagStyle {
Expand Down Expand Up @@ -236,10 +236,10 @@ impl<'a> Formatter<'a> {
}

pub fn format_syn_pat(&mut self, pat: &Pat) {
leptosfmt_prettyplease::unparse_fn(&mut self.printer, None, |p| p.pat(pat));
leptosfmt_prettyplease::unparse_fn(self.printer, None, |p| p.pat(pat));
}

pub fn format_syn_generics(&mut self, generics: &Generics) {
leptosfmt_prettyplease::unparse_fn(&mut self.printer, None, |p| p.generics(generics));
leptosfmt_prettyplease::unparse_fn(self.printer, None, |p| p.generics(generics));
}
}
2 changes: 1 addition & 1 deletion prettyplease
Submodule prettyplease updated 1 files
+1 −1 src/lib.rs

0 comments on commit ac15e54

Please sign in to comment.