Remove usage of String::from_str, deprecated in #6377

This commit is contained in:
Simon Sapin 2015-06-15 15:34:03 +02:00
parent 24af4c4ec6
commit 5428226e04
6 changed files with 11 additions and 13 deletions

View file

@ -1038,7 +1038,7 @@ fn should_move_clip_rect(clip_rect: Rect<Au>, new_viewport: Rect<f32>) -> bool{
}
fn debug_reflow_events(goal: &ReflowGoal, query_type: &ReflowQueryType, reason: &ReflowReason) {
let mut debug_msg = String::from_str("****");
let mut debug_msg = "****".to_owned();
debug_msg.push_str(match *goal {
ReflowGoal::ForDisplay => "\tForDisplay",
ReflowGoal::ForScriptQuery => "\tForScriptQuery",