formatting: run cargo fmt

This commit is contained in:
Jonathan Kelley committed 2022-01-03 01:20:05 -05:00
1 parent 5da0a0c97e
commit a95dead76d
3 files changed
-9

No files matched your search

-3
View File
@@ -6,7 +6,6 @@
//! //!
//! https://dev.to/arctic_hen7/how-to-set-up-tailwind-css-with-yew-and-trunk-il9 //! https://dev.to/arctic_hen7/how-to-set-up-tailwind-css-with-yew-and-trunk-il9
use dioxus::prelude::*; use dioxus::prelude::*;
fn main() { fn main() {
@@ -86,8 +85,6 @@ pub fn app(cx: Scope) -> Element {
)) ))
} }
pub fn StacksIcon(cx: Scope) -> Element { pub fn StacksIcon(cx: Scope) -> Element {
cx.render(rsx!( cx.render(rsx!(
svg { svg {
-2
View File
@@ -1,6 +1,5 @@
use dioxus::prelude::*; use dioxus::prelude::*;
fn main() { fn main() {
dioxus::desktop::launch(app); dioxus::desktop::launch(app);
} }
@@ -19,7 +18,6 @@ pub struct TodoItem {
pub contents: String, pub contents: String,
} }
pub fn app(cx: Scope<()>) -> Element { pub fn app(cx: Scope<()>) -> Element {
let todos = use_state(&cx, || im_rc::HashMap::<u32, TodoItem>::default()); let todos = use_state(&cx, || im_rc::HashMap::<u32, TodoItem>::default());
let filter = use_state(&cx, || FilterState::All); let filter = use_state(&cx, || FilterState::All);
-4
View File
@@ -66,7 +66,3 @@ harness = false
[[bench]] [[bench]]
name = "jsframework" name = "jsframework"
harness = false harness = false
[[example]]
name = "rows"
path = "./examples/rows.rs"