chore(deps): update rust crate strum to 0.27.0
Compare changes
-
Signed-off-by:
renovate <renovate@archlinux.org>
+ 1
− 1
@@ -32,7 +32,7 @@ serde = { version = "1.0.215", features = ["derive"] }
Due to an influx of spam, we have had to temporarily disable account registrations. Please write an email to accountsupport@archlinux.org, with your desired username, if you want to get access. Sorry for the inconvenience.
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
strum | workspace.dependencies | minor |
0.26.3 -> 0.27.0
|
v0.27.1
#414: Fix docrs build error.
#417: Mention parse_error_ty
and parse_error_fn
that had been
left out of the docs accidentally.
#421#331: Implement
#[strum(transparent)]
attribute on IntoStaticStr
, Display
and AsRefStr
that forwards the implmenentation to
the inner value. Note that for static strings, the inner value must be convertible to an &'static str
.
#[derive(strum::Display)]
enum SurveyResponse {
Yes,
No,
#[strum(transparent)]
Other(String)
}
fn main() {
let response = SurveyResponse::Other("It was good".into());
println!("Question: Did you have fun?");
println!("Answer: {}", response);
// prints: Answer: It was good
}
v0.27.0
Display
is now correctly derived in [no_std]
projects.EnumIter
now implements Send + Sync
EnumTryAs
now handles attributes on variant fields correctly.strum
is now on rust 2021EnumProperties
correctly implements get_bool
and get_int
finally. FromString
now supports 2 additional attributes, parse_error_ty
and parse_error_fn
that can be added to use a custom error type rather than the default strum error message.
Path
rather than a String
to improve behavior with rust-analyzer.This MR has been generated by Renovate Bot.
Signed-off-by:
renovate <renovate@archlinux.org>