fix: random commit (#586)

This commit is contained in:
Jon Kelley 2022-10-08 23:07:20 -07:00 committed by GitHub
parent 6476335750
commit fb2f3e68ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 24 deletions

View file

@ -69,8 +69,6 @@ impl Buffer {
BodyNode::Component(component) => self.write_component(component),
BodyNode::Text(text) => self.write_text(text),
BodyNode::RawExpr(exp) => self.write_raw_expr(exp),
BodyNode::ForLoop(exp) => self.write_for_loop(exp),
BodyNode::IfChain(exp) => self.write_if_chain(exp),
}
}

View file

@ -1,8 +1,6 @@
//! pretty printer for rsx!
use std::fmt::{Result, Write};
use dioxus_rsx::ForLoop;
use crate::Buffer;
impl Buffer {
@ -43,23 +41,6 @@ impl Buffer {
Ok(())
}
pub fn write_if_chain(&mut self, exp: &syn::ExprIf) -> Result {
todo!()
}
pub fn write_for_loop(&mut self, for_loop: &ForLoop) -> Result {
let ForLoop {
for_token,
pat,
in_token,
expr,
body,
} = for_loop;
todo!()
// self.write_raw_expr(&for_loop.expr)?;
// Ok(())
}
}
// :(

View file

@ -166,7 +166,7 @@ impl std::fmt::Debug for OwnedArbitraryAttributeValue {
}
#[cfg(feature = "serialize")]
impl<'a> serde::Serialize for OwnedArbitraryAttributeValue {
impl serde::Serialize for OwnedArbitraryAttributeValue {
fn serialize<S>(&self, _serializer: S) -> Result<S::Ok, S::Error>
where
S: serde::Serializer,
@ -175,7 +175,7 @@ impl<'a> serde::Serialize for OwnedArbitraryAttributeValue {
}
}
#[cfg(feature = "serialize")]
impl<'de, 'a> serde::Deserialize<'de> for &'a OwnedArbitraryAttributeValue {
impl<'de> serde::Deserialize<'de> for &OwnedArbitraryAttributeValue {
fn deserialize<D>(_deserializer: D) -> Result<Self, D::Error>
where
D: serde::Deserializer<'de>,
@ -184,7 +184,7 @@ impl<'de, 'a> serde::Deserialize<'de> for &'a OwnedArbitraryAttributeValue {
}
}
#[cfg(feature = "serialize")]
impl<'de, 'a> serde::Deserialize<'de> for OwnedArbitraryAttributeValue {
impl<'de> serde::Deserialize<'de> for OwnedArbitraryAttributeValue {
fn deserialize<D>(_deserializer: D) -> Result<Self, D::Error>
where
D: serde::Deserializer<'de>,