mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Fix a bunch of clippy lints
This commit is contained in:
parent
b1ca3d1cdf
commit
6b215f38ee
58 changed files with 281 additions and 356 deletions
|
@ -191,7 +191,7 @@ pub fn handle_get_text(page: &Rc<Page>,
|
|||
reply: IpcSender<Result<String, ()>>) {
|
||||
reply.send(match find_node_by_unique_id(&*page, pipeline, node_id) {
|
||||
Some(ref node) => {
|
||||
Ok(node.GetTextContent().map(String::from).unwrap_or("".to_owned()))
|
||||
Ok(node.GetTextContent().map_or("".to_owned(), String::from))
|
||||
},
|
||||
None => Err(())
|
||||
}).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue