Dan Johnson
Dan Johnson
[Playground demo](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=e523d98ae81610bc2bfbc2a9e28aa2e4) This code: ```rust pub struct ArgWithDropGlue; impl Drop for ArgWithDropGlue { fn drop(&mut self) { println!("dropped"); } } #[async_trait] pub(crate) trait Create: Sized { async fn create(arg: ArgWithDropGlue)...
[`OptionFuture`]'s design seems inconsistent to me. The docs don't clearly explain what it's for: > A future representing a value which may or may not be present. Which could describe...
I tried the following code: ```rust use criterion::{criterion_group, criterion_main, Criterion}; pub fn criterion_benchmark(c: &mut Criterion) { c.bench_function("empty", |b| b.iter_batched(|| (), |_| (), criterion::BatchSize::SmallInput)); } criterion_group!(benches, criterion_benchmark); criterion_main!(benches); ``` And I...
I think [`mpsc::Receiver::try_next`] should be renamed, since it conflicts with [`TryStreamExt::try_next`]. Since receiver is actually a `Stream` itself it's definitely confusing that there's two `try_next()`s that could apply that do...
While reading the blog post at https://harrystern.net/extrasafe-user-namespaces.html I thought to myself: that doesn't sound like it would work, because it would mess up how binaries find their shared libraries when...
deepsize (with chrono feature) fails to build with chrono 0.4.13 (and 0.4.14 is yanked)
In my opinion, the Pixel phone's WiFi sharing QR codes are needlessly hard to scan. But other QR code implementations do scan them, and I also want WiFi sharing to...
> [!IMPORTANT] > Refactor to remove deprecated `DateTime::from_utc` and update `chrono` version in `Cargo.toml`. > > - **Refactor**: > - Replace `DateTime::from_utc` with `into()` in `aw-client-rust/tests/test.rs` for `timestamp` conversion. >...