chiark / gitweb /
Mass change of .to_string() to .to_owned().
authorSimon Tatham <anakin@pobox.com>
Tue, 26 Dec 2023 10:20:58 +0000 (10:20 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 26 Dec 2023 10:24:27 +0000 (10:24 +0000)
commitc5d74a639c84e22b7df4414bbda5d5e9ed4d211a
treedd734eb45459b3b6f20fa0c4caa71fa8fbc4791d
parentf03650e4b71b83f95c897f7ad5cc2cebb40ab22e
Mass change of .to_string() to .to_owned().

I've just figured out that the former means 'use the Display trait'
whereas the latter means 'change ownership and lifetime'. In the case
of &str, both do what I want, but .to_owned() is a clearer
specification of how _little_ I wanted.
src/coloured_string.rs
src/text.rs