Skip to content

Commit

Permalink
String::append() -> push_str()
Browse files Browse the repository at this point in the history
  • Loading branch information
cadencemarseille committed Oct 25, 2014
1 parent 38d85db commit 83e7063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ fn main() {
let output_len = pcre_config_output.output.len();
let prefix_str = unsafe { string::raw::from_buf_len(output_ptr, output_len) };
// `pcre-config` adds a newline to the end, which we need to trim away.
String::from_str(prefix_str.as_slice().trim()).append("/lib")
String::from_str(prefix_str.as_slice().trim()).push_str("/lib")
},
Some(pcre_libdir) => pcre_libdir
};
Expand Down

0 comments on commit 83e7063

Please sign in to comment.