summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d4f7ca4)
Its incredibly unexpected that you can clone a higher-level object
(eg an Event with a ClosureReason that contains an `Str`) and have
a pointer back to the original object. To avoid this, `clone` needs
to actually `clone`.
}
impl Clone for Str {
fn clone(&self) -> Self {
}
impl Clone for Str {
fn clone(&self) -> Self {
- self.into_str().clone().into()
+ String::from(self.into_str()).into()