.clone() returns its receiver. clone() on a &str returns a &str . If you want a String , you need a different method, which in this case is .to_owned() .
確定! 回上一頁