You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That way CodeFormatter<'a, dyn fmt::Write> is usable. This is trivial (bounds just need to gain : ?Sized), non-breaking, and has no real downsides AFAICT.
The only reason this is an issue and not a PR is that it would have a merge conflict with #15, so I'll wait for that one to resolve either way first rather than having a mid-air collision with myself.
The text was updated successfully, but these errors were encountered:
thomcc
changed the title
CodeFormatter should use T: ?Sized for the fmt::Write
CodeFormatter should use T: ?Sized + fmt::Write instead of T: fmt::WriteAug 4, 2021
That way
CodeFormatter<'a, dyn fmt::Write>
is usable. This is trivial (bounds just need to gain: ?Sized
), non-breaking, and has no real downsides AFAICT.The only reason this is an issue and not a PR is that it would have a merge conflict with #15, so I'll wait for that one to resolve either way first rather than having a mid-air collision with myself.
The text was updated successfully, but these errors were encountered: