ben

Results 13 issues of ben

It should be possible to change the mime type of the templates. I use `.askama` for my templates and `.html` for raw html files, and I get `content-type: application/octet-stream` when...

See https://github.com/paritytech/substrate/issues/11866 for relevant discussion. I debated on whether to have the signature of the functions passed to `map`/`try_map` pass `K` through, but I realized that this could cause the...

A0-pleasereview
B0-silent
C1-low 📌
D3-trivial 🧸

The current `Bounded*` types are incredibly useful, but sometimes it is necessary to have a minimum amount of items as well as a max. We currently maintain our own `BiBoundedVec`...

Reopening #2329

breaking

Several of the `Weight` implementations are (as the title states) unnecessarily verbose: - ~~`checked_*` functions could be made much more succinct by using the `?` operator~~ not possible, see https://github.com/rust-lang/rust/issues/74935...

This implementation is invalid: https://github.com/paritytech/parity-common/blob/a5ef7308d6986e62431e35d3156fed0a7a585d39/uint/src/uint.rs#L1349-L1356 As per the docs on [`From`](https://doc.rust-lang.org/stable/std/convert/trait.From.html): > Note: This trait must not fail. The From trait is intended for perfect conversions. If the conversion can...

As per the title, [`ContextKind::Custom`](https://github.com/clap-rs/clap/blob/1f022b83958334241c47de10195a2a502d99d81b/clap_builder/src/error/context.rs#L62) is currently useless as nothing ever reads it. I expected it to be used in a similar way to [`ContextKind::Usage`](https://github.com/clap-rs/clap/blob/master/clap_builder/src/error/format.rs#L118-L121), in that it could be...

The `Saturating` trait was deprecated here: https://github.com/rust-num/num-traits/commit/86c31265f582d98ca58ff494567f1bbaf6aa4b5b, but not officially (i.e. no `#[deprecated, reason = "..."]` attribute). Is there a reason for this? Would it be possible to do this?

Since the addition of the --hidden flag missed the 6.1 release by 1 day (#250), it would be great if a new version could be released. (I've resorted to building...

enhancement