mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Fix some build warnings
- Mark some instances of unused fields and variables as as allowed, when they are used for memory management. - Remove the use of some deprecated function.s Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
9a03911abf
commit
c021df027a
5 changed files with 11 additions and 12 deletions
|
@ -51,9 +51,7 @@ impl ServoUrl {
|
|||
}
|
||||
|
||||
pub fn into_string(self) -> String {
|
||||
Arc::try_unwrap(self.0)
|
||||
.unwrap_or_else(|s| (*s).clone())
|
||||
.into_string()
|
||||
String::from(Arc::try_unwrap(self.0).unwrap_or_else(|s| (*s).clone()))
|
||||
}
|
||||
|
||||
pub fn into_url(self) -> Url {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue