mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
clippy: fix warnings in various modules in components (#31568)
* clippy: fix warnings in various modules in components * fix: unit tests * fix: build on android * fix: all samplers use new_boxed
This commit is contained in:
parent
19f1f2a8f4
commit
3a5ca785d3
24 changed files with 107 additions and 118 deletions
|
@ -204,10 +204,7 @@ impl<I: RangeIndex> Range<I> {
|
|||
/// ~~~
|
||||
#[inline]
|
||||
pub fn new(begin: I, length: I) -> Range<I> {
|
||||
Range {
|
||||
begin: begin,
|
||||
length: length,
|
||||
}
|
||||
Range { begin, length }
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue