mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
clippy: Rename various methods and members to conform to naming guidelines (#33762)
This ensure that methods named `new()` do not take `&self` or return `Box<Self>`. In addition, method are renamed (or removed when not necessary) to avoid being prefixed with `from_`. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
2805d3ce14
commit
6f87c38cda
6 changed files with 55 additions and 57 deletions
|
@ -611,7 +611,8 @@ impl WorkletThread {
|
|||
hash_map::Entry::Vacant(entry) => {
|
||||
debug!("Creating new worklet global scope.");
|
||||
let executor = WorkletExecutor::new(worklet_id, self.primary_sender.clone());
|
||||
let result = global_type.new(
|
||||
let result = WorkletGlobalScope::new(
|
||||
global_type,
|
||||
&self.runtime,
|
||||
pipeline_id,
|
||||
base_url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue