Jake Goulding
Jake Goulding
> It's a small but necessary feature I'll argue about **necessary** as we've lived without it for 4+ years and it can be written as a helper method today: ```rust...
Still reproduces: ``` thread '' panicked at /Users/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/markdown-1.0.0-alpha.22/src/util/character_reference.rs:196:35: index out of bounds: the len is 6 but the index is 6 stack backtrace: 0: 0x14c4185e0 - _napi_register_module_v1 1: 0x14c43612c -...
How does this syntax feel? ```rust #[derive(Debug, Snafu)] enum RecursiveError { Leaf, Node { #[snafu(source(from(RecursiveError, Box::new)))] #[snafu(source(via(|e| &**e)))] source: Box, }, } ``` I don't love `via` as the keyword;...
> But `as` is a keyword, so that doesn't feel great either, even if macros aren't bound by rust keywords. I don't mind the `as`, especially as it's going to...
Haha, Rust is too clever: > note: to avoid ambiguity, `format_args!` cannot capture variables when the format string is expanded from a macro
I was continuing to edit my comment while you were responding (sorry!) so you likely missed this question: > Notably, I'm not understanding why you'd want such functionality for an...
Work I've been doing locally would allow for you to write this: ```rust #[derive(Debug, Snafu)] enum SignInError { #[snafu(display("Already signed in"))] AlreadySignedIn, #[snafu(transparent)] Authn { #[snafu(source(from(generic)))] source: AuthnError }, #[snafu(transparent)]...
> I define repositories and their errors using traits and associated types. > As a result, the error type returned by repositories is `impl Into`. This is one of the...
If people are interested in trying this out, please check out #537 (including [the docs](https://deploy-preview-537--shepmaster-snafu.netlify.app/snafu/derive.snafu#from-an-arbitrary-type)) and [use it in your project](https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html#working-with-an-unpublished-minor-version) to ensure it works for you. ```toml [patch.crates-io] snafu...
> what to do I activated the venv: ``` source ./bin/activate ``` Inside the venv, I installed the library: ``` python3 -m pip install PyYAML ``` I was then able...