Closed dodomorandi closed 5 months ago
Thanks. That is a good suggestion. Format definitely doesn't need a lifetime. It was probably added for some legacy reason that isn't there anymore. I'll review and merge your fix later today.
Fix merged. Thanks.
This is a useful idea. I may add an example like this to the docs.
The PR for this is upstream in v0.63.0. Thanks for the input.
Current behavior
At the moment the lifetime of
format
is bound to the lifetime ofworksheet
inIntoExcelData::write_with_format
.Expected behavior
format
should have a free lifetime, in order to detach it fromworksheet
and the output type. With this change it will be possible to have auto-formatted types.Sample code to reproduce
Any other information
No response