Lucas

Results 72 issues of Lucas

I think it's a bit hard to read the source code especially because the indentation looks "squashed"....

enhancement

```rust #[derive(Add, AddAssign, Sub, SubAssign)] struct Example(usize); ``` should generate ```rust impl Sub for Example where usize: Sub, { type Output = Self; #[must_use] #[inline] fn sub(self, rhs: T) ->...

enhancement
help wanted

I would love to be able to do this: ```rust #[derive(Display)] #[display("{major}.{minor}.{patch}")] pub struct Version { major: usize, minor: usize, patch: usize, } ``` instead of ```rust #[derive(Display)] #[display(fmt =...

I am not sure if I broke something, because there are no tests and CI.

This PR does a lot of stuff: - first I applied `cargo fmt` to make the code more readable (my editor automatically does this, when I save a file) -...

The following code doesn't work as expected ```rust #[derive(Display)] #[strum(serialize_all = "SCREAMING-KEBAB-CASE")] enum Example { Aes128 } assert_eq!(Example::Aes128, "AES-128".to_string()); ``` instead strum generates: `"AES128"`

I would like to be able to do something like this ```rust #[derive(Display)] #[strum("series.{}", serialize_all = "snake_case")] struct Series { Media } assert_eq!(Series::Media.to_string(), "series.media".to_string()); ``` The attribute could also look...

enhancement
help wanted

This PR is based on #30 (after #30 has been merged I will rebase this PR on master)