Skip to content

Commit

Permalink
Take string slices
Browse files Browse the repository at this point in the history
  • Loading branch information
sanxiyn committed May 21, 2013
1 parent 808aada commit 6b525ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libsyntax/print/pprust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down

0 comments on commit 6b525ec

Please sign in to comment.