Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delegation for fmt traits (#321) #322

Merged
merged 28 commits into from
Dec 22, 2023
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
81162c8
Cover direct delegation with tests
tyranron Dec 15, 2023
5b28215
Cover interpolated delegation with tests for `Display`
tyranron Dec 15, 2023
1966973
Cover interpolated `Display` delegation with tests for multi-field case
tyranron Dec 18, 2023
fcf399c
Cover interpolated `Debug` delegation for `Display`
tyranron Dec 18, 2023
f561527
Cover delegation suppression in `Display` tests
tyranron Dec 18, 2023
003bbbd
Bootstrap `Display delegation`
tyranron Dec 18, 2023
2b6c9f8
Add tests for untriggered delegation
tyranron Dec 18, 2023
eef4de0
Fix `Pointer` tests for other platforms
tyranron Dec 18, 2023
49d6f20
Enable delegation for `Debug`
tyranron Dec 18, 2023
6f62ba5
Cover `Debug` delegation with tests
tyranron Dec 18, 2023
955ccbc
Mention delegation in docs
tyranron Dec 18, 2023
0af03e6
Mention in CHANGELOG
tyranron Dec 18, 2023
040897e
Fix docs
tyranron Dec 18, 2023
8e93ade
Fix docs
tyranron Dec 18, 2023
bc87f9b
Parse `sign` in `format_spec`
tyranron Dec 19, 2023
9897613
Add tests for other formatting modifiers
tyranron Dec 19, 2023
ee7d27d
Parse `#` (alternate) in `format_spec`
tyranron Dec 19, 2023
9a47940
Parse `0` (zero padding) in `format_spec`
tyranron Dec 20, 2023
565ba9d
Parse `[fill]align` in `format_spec`
tyranron Dec 20, 2023
4450c1d
Consider all possbile modifiers for delegation
tyranron Dec 20, 2023
14f964b
Cover delegation for units in tests
tyranron Dec 20, 2023
2c3915a
Fix tests
tyranron Dec 20, 2023
6f8fc57
Rework delegation detection
tyranron Dec 20, 2023
1a30168
Revert changes to `bounded_types` method
tyranron Dec 20, 2023
0fee2bc
Switch terminology to "transparency"
tyranron Dec 20, 2023
916684b
Make `rustfmt` happy
tyranron Dec 20, 2023
0b266c9
Fix doc tests
tyranron Dec 20, 2023
96c5f67
Fix typo in CHANGELOG
tyranron Dec 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
`#[display(fmt = "...", ("<expr>"),*)]`, and `#[display(bound(<bound>))]`
instead of `#[display(bound = "<bound>")]`. So without the double quotes
around the expressions and bounds.
- The `Display` derive (and other `fmt`-like ones) now delegates to the inner type
tyranron marked this conversation as resolved.
Show resolved Hide resolved
when `#[display("...", (<expr>),*)]` attribute is trivially substitutable with such
call. ([#322](https://github.com/JelteF/derive_more/pull/322))
- The `DebugCustom` derive is renamed to just `Debug` (gated now under a separate
`debug` feature), and its semantics were changed to be a superset of `std` variant
of `Debug`.
Expand Down
Loading