mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Removing unnecessary string trimming
This commit is contained in:
parent
817d232f2b
commit
51cdc06c6a
1 changed files with 1 additions and 2 deletions
|
@ -521,8 +521,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
|
|||
});
|
||||
});
|
||||
let v: Vec<&str> = split_html_space_chars(title.as_slice()).collect();
|
||||
let title = v.connect(" ");
|
||||
title.as_slice().trim().to_string()
|
||||
v.connect(" ")
|
||||
}
|
||||
|
||||
// http://www.whatwg.org/specs/web-apps/current-work/#document.title
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue