mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-09-22 15:21:58 +00:00
fix: random commit (#586)
This commit is contained in:
parent
6476335750
commit
fb2f3e68ff
3 changed files with 3 additions and 24 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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(())
|
||||
}
|
||||
}
|
||||
|
||||
// :(
|
||||
|
|
|
@ -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>,
|
||||
|
|
Loading…
Reference in a new issue