From 2abb56a9fc882d832d879f6ffc8e9121f40b163c Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Wed, 24 Jul 2024 09:22:20 -0400 Subject: [PATCH] chore: clippy --- meta/src/body.rs | 2 +- meta/src/html.rs | 2 +- meta/src/lib.rs | 4 ++-- meta/src/title.rs | 2 +- tachys/src/view/any_view.rs | 6 ++++-- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/meta/src/body.rs b/meta/src/body.rs index 734bc0560d..263fc995ff 100644 --- a/meta/src/body.rs +++ b/meta/src/body.rs @@ -122,7 +122,7 @@ where _buf: &mut String, _position: &mut Position, _escape: bool, - mark_branches: bool, + _mark_branches: bool, ) { if let Some(meta) = use_context::() { let mut buf = String::new(); diff --git a/meta/src/html.rs b/meta/src/html.rs index d90083416a..7a3f08ede1 100644 --- a/meta/src/html.rs +++ b/meta/src/html.rs @@ -122,7 +122,7 @@ where _buf: &mut String, _position: &mut Position, _escape: bool, - mark_branches: bool, + _mark_branches: bool, ) { if let Some(meta) = use_context::() { let mut buf = String::new(); diff --git a/meta/src/lib.rs b/meta/src/lib.rs index 9049b2c93a..04cab4e15d 100644 --- a/meta/src/lib.rs +++ b/meta/src/lib.rs @@ -439,7 +439,7 @@ where _buf: &mut String, _position: &mut Position, _escape: bool, - mark_branches: bool, + _mark_branches: bool, ) { // meta tags are rendered into the buffer stored into the context // the value has already been taken out, when we're on the server @@ -549,7 +549,7 @@ impl RenderHtml for MetaTagsView { buf: &mut String, _position: &mut Position, _escape: bool, - mark_branches: bool, + _mark_branches: bool, ) { buf.push_str(""); } diff --git a/meta/src/title.rs b/meta/src/title.rs index 512ea9e5b7..8b4f8c7839 100644 --- a/meta/src/title.rs +++ b/meta/src/title.rs @@ -250,7 +250,7 @@ impl RenderHtml for TitleView { _buf: &mut String, _position: &mut Position, _escape: bool, - mark_branches: bool, + _mark_branches: bool, ) { // meta tags are rendered into the buffer stored into the context // the value has already been taken out, when we're on the server diff --git a/tachys/src/view/any_view.rs b/tachys/src/view/any_view.rs index 70446ff40e..ba8e2ee637 100644 --- a/tachys/src/view/any_view.rs +++ b/tachys/src/view/any_view.rs @@ -1,6 +1,8 @@ +#[cfg(feature = "ssr")] +use super::MarkBranch; use super::{ - add_attr::AddAnyAttr, MarkBranch, Mountable, Position, PositionState, - Render, RenderHtml, + add_attr::AddAnyAttr, Mountable, Position, PositionState, Render, + RenderHtml, }; use crate::{ html::attribute::Attribute, hydration::Cursor, renderer::Renderer,