This is an archive of the discontinued Mercurial Phabricator instance.

rust: replace ToString impls with Display
ClosedPublic

Authored by SimonSapin on Jan 28 2021, 2:39 PM.

Details

Summary

ToString is automatically implementing for everything that implements
Display, and Display can avoid allocating intermediate strings.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

SimonSapin created this revision.Jan 28 2021, 2:39 PM
Alphare accepted this revision.Jan 29 2021, 8:54 AM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.