提交 6b525ecb 编写于 作者: S Seo Sanghyeon

Take string slices

上级 808aada1
......@@ -656,10 +656,10 @@ pub fn visibility_to_str(vis: ast::visibility) -> ~str {
}
}
pub fn visibility_qualified(vis: ast::visibility, s: ~str) -> ~str {
pub fn visibility_qualified(vis: ast::visibility, s: &str) -> ~str {
match vis {
ast::private | ast::public => visibility_to_str(vis) + " " + s,
ast::inherited => copy s
ast::inherited => s.to_owned()
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册