mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix clippy warnings in components/rand
(#31549)
* resolved clippy warnings in components/rand Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local> * replaced new() with default() Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local> * replaced ServoRng::new() with ServoRng::default() Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local> * moved the contents of the new() method into the default() method Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local> --------- Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local> Co-authored-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local>
This commit is contained in:
parent
e4ac047a9c
commit
64d013d473
4 changed files with 6 additions and 6 deletions
|
@ -144,7 +144,7 @@ fn run_server(
|
|||
});
|
||||
|
||||
// A token shared with the embedder to bypass permission prompt.
|
||||
let token = format!("{:X}", servo_rand::ServoRng::new().next_u32());
|
||||
let token = format!("{:X}", servo_rand::ServoRng::default().next_u32());
|
||||
|
||||
let port = bound.as_ref().map(|(_, port)| *port).ok_or(());
|
||||
embedder.send((None, EmbedderMsg::OnDevtoolsStarted(port, token.clone())));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue