feat: some docs, cleaning

This commit is contained in:
Jonathan Kelley committed 2021-09-01 00:57:04 -04:00
1 parent acad9ca622
commit c321532a6c
19 files changed
+269 -195

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ async fn test_iterative_create_components() {
}
}
}
{(0..0).map(|f| rsx!{ div { "walalla"}})}
{(0..0).map(|_f| rsx!{ div { "walalla"}})}
p {}
})
}
+3 -3
View File
@@ -16,12 +16,12 @@ about 10ms, which is way more than enough for diffing/creating to happen.
async fn batch() {
let (sender, mut recver) = futures_channel::mpsc::unbounded::<i32>();
let handle = async_std::task::spawn(async move {
let msg = recver.next().await;
let _handle = async_std::task::spawn(async move {
let _msg = recver.next().await;
while let Ok(msg) = recver.try_next() {
println!("{:#?}", msg);
}
let msg = recver.next().await;
let _msg = recver.next().await;
while let Ok(msg) = recver.try_next() {
println!("{:#?}", msg);
}
+1 -1
View File
@@ -1,6 +1,6 @@
pub fn set_up_logging(enabled: bool) {
use fern::colors::{Color, ColoredLevelConfig};
use log::debug;
if !enabled {
return;