diff --git a/formatter/src/formatter/mod.rs b/formatter/src/formatter/mod.rs index a232e7b..590e703 100644 --- a/formatter/src/formatter/mod.rs +++ b/formatter/src/formatter/mod.rs @@ -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 { @@ -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)); } } diff --git a/prettyplease b/prettyplease index b233625..bebc259 160000 --- a/prettyplease +++ b/prettyplease @@ -1 +1 @@ -Subproject commit b233625a311f019831b1b565fd97004427f41e47 +Subproject commit bebc259d12bb0f9a53132f3700017b56d32a4dad