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
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

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.