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:
Martin Robinson 2023-01-11 12:18:44 +01:00
parent 9a03911abf
commit c021df027a
5 changed files with 11 additions and 12 deletions

View file

@ -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 {