Commit afdc70cc authored by Ben Boeckel's avatar Ben Boeckel

rust: fix compilation on 1.32.0

`&self.some_string` apparently didn't `impl Into<String>` until then?
parent 9cd548bd
......@@ -151,7 +151,8 @@ impl Identity {
impl Clone for Identity {
fn clone(&self) -> Self {
Self::new(&self.name, &self.email)
// XXX(1.36.0): These can be `&self.<field>` in 1.36.0.
Self::new(self.name.clone(), self.email.clone())
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment