mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Relax the requirement of Atom::with.
This commit is contained in:
parent
9354e90afc
commit
0667287bf6
4 changed files with 4 additions and 4 deletions
|
@ -47,7 +47,7 @@ pub fn each_class<F, T>(item: T,
|
|||
let length = getter(item, &mut class, &mut list);
|
||||
match length {
|
||||
0 => {}
|
||||
1 => Atom::with(class, &mut callback),
|
||||
1 => Atom::with(class, callback),
|
||||
n => {
|
||||
let classes = slice::from_raw_parts(list, n as usize);
|
||||
for c in classes {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue