mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
cargo fix --edition-idioms
This commit is contained in:
parent
b1fd6237d1
commit
2012be4a8b
203 changed files with 665 additions and 1281 deletions
|
@ -32,7 +32,7 @@ pub struct HTMLOptionsCollection {
|
|||
impl HTMLOptionsCollection {
|
||||
fn new_inherited(
|
||||
select: &HTMLSelectElement,
|
||||
filter: Box<CollectionFilter + 'static>,
|
||||
filter: Box<dyn CollectionFilter + 'static>,
|
||||
) -> HTMLOptionsCollection {
|
||||
HTMLOptionsCollection {
|
||||
collection: HTMLCollection::new_inherited(select.upcast(), filter),
|
||||
|
@ -42,7 +42,7 @@ impl HTMLOptionsCollection {
|
|||
pub fn new(
|
||||
window: &Window,
|
||||
select: &HTMLSelectElement,
|
||||
filter: Box<CollectionFilter + 'static>,
|
||||
filter: Box<dyn CollectionFilter + 'static>,
|
||||
) -> DomRoot<HTMLOptionsCollection> {
|
||||
reflect_dom_object(
|
||||
Box::new(HTMLOptionsCollection::new_inherited(select, filter)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue