mirror of
https://github.com/leptos-rs/leptos
synced 2024-09-20 06:21:57 +00:00
chore: clippy
This commit is contained in:
parent
43421c56d5
commit
6a705e2a21
5 changed files with 9 additions and 7 deletions
|
@ -122,7 +122,7 @@ where
|
||||||
_buf: &mut String,
|
_buf: &mut String,
|
||||||
_position: &mut Position,
|
_position: &mut Position,
|
||||||
_escape: bool,
|
_escape: bool,
|
||||||
mark_branches: bool,
|
_mark_branches: bool,
|
||||||
) {
|
) {
|
||||||
if let Some(meta) = use_context::<ServerMetaContext>() {
|
if let Some(meta) = use_context::<ServerMetaContext>() {
|
||||||
let mut buf = String::new();
|
let mut buf = String::new();
|
||||||
|
|
|
@ -122,7 +122,7 @@ where
|
||||||
_buf: &mut String,
|
_buf: &mut String,
|
||||||
_position: &mut Position,
|
_position: &mut Position,
|
||||||
_escape: bool,
|
_escape: bool,
|
||||||
mark_branches: bool,
|
_mark_branches: bool,
|
||||||
) {
|
) {
|
||||||
if let Some(meta) = use_context::<ServerMetaContext>() {
|
if let Some(meta) = use_context::<ServerMetaContext>() {
|
||||||
let mut buf = String::new();
|
let mut buf = String::new();
|
||||||
|
|
|
@ -439,7 +439,7 @@ where
|
||||||
_buf: &mut String,
|
_buf: &mut String,
|
||||||
_position: &mut Position,
|
_position: &mut Position,
|
||||||
_escape: bool,
|
_escape: bool,
|
||||||
mark_branches: bool,
|
_mark_branches: bool,
|
||||||
) {
|
) {
|
||||||
// meta tags are rendered into the buffer stored into the context
|
// meta tags are rendered into the buffer stored into the context
|
||||||
// the value has already been taken out, when we're on the server
|
// the value has already been taken out, when we're on the server
|
||||||
|
@ -549,7 +549,7 @@ impl RenderHtml<Dom> for MetaTagsView {
|
||||||
buf: &mut String,
|
buf: &mut String,
|
||||||
_position: &mut Position,
|
_position: &mut Position,
|
||||||
_escape: bool,
|
_escape: bool,
|
||||||
mark_branches: bool,
|
_mark_branches: bool,
|
||||||
) {
|
) {
|
||||||
buf.push_str("<!--HEAD-->");
|
buf.push_str("<!--HEAD-->");
|
||||||
}
|
}
|
||||||
|
|
|
@ -250,7 +250,7 @@ impl RenderHtml<Dom> for TitleView {
|
||||||
_buf: &mut String,
|
_buf: &mut String,
|
||||||
_position: &mut Position,
|
_position: &mut Position,
|
||||||
_escape: bool,
|
_escape: bool,
|
||||||
mark_branches: bool,
|
_mark_branches: bool,
|
||||||
) {
|
) {
|
||||||
// meta tags are rendered into the buffer stored into the context
|
// meta tags are rendered into the buffer stored into the context
|
||||||
// the value has already been taken out, when we're on the server
|
// the value has already been taken out, when we're on the server
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
|
#[cfg(feature = "ssr")]
|
||||||
|
use super::MarkBranch;
|
||||||
use super::{
|
use super::{
|
||||||
add_attr::AddAnyAttr, MarkBranch, Mountable, Position, PositionState,
|
add_attr::AddAnyAttr, Mountable, Position, PositionState, Render,
|
||||||
Render, RenderHtml,
|
RenderHtml,
|
||||||
};
|
};
|
||||||
use crate::{
|
use crate::{
|
||||||
html::attribute::Attribute, hydration::Cursor, renderer::Renderer,
|
html::attribute::Attribute, hydration::Cursor, renderer::Renderer,
|
||||||
|
|
Loading…
Reference in a new issue