chiark / gitweb /
Get rid of ColouredStringSlice::to_owned() completely.
authorSimon Tatham <anakin@pobox.com>
Tue, 9 Jan 2024 06:47:55 +0000 (06:47 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 10 Jan 2024 07:53:54 +0000 (07:53 +0000)
commitcb22ce516eaa9f3722941d219c8908069969acc0
tree5efd9642a41b53566fb127c4e50f05611fb164bc
parent474eea16044bd873861869e208088f5e16eb3c6a
Get rid of ColouredStringSlice::to_owned() completely.

It's superseded by the impl of From for ColouredString, which means
now if you want to turn a ColouredStringSlice into an owned string,
you can either say ColouredString::from(slice) or slice.into() at your
option. And I haven't found any cases where I had to use the more
verbose of the two.
src/coloured_string.rs
src/file.rs
src/text.rs