Call str::to_owned in String::from and uninline it
String::from does not need to be inlined, it can be without it just like str::to_owned and String::clone are.
Showing
想要评论请 注册 或 登录
String::from does not need to be inlined, it can be without it just like str::to_owned and String::clone are.