mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Lint layout_2020 with clippy (#31169)
cargo clippy --fix -p layout_2020 --allow-dirty --broken-code
This commit is contained in:
parent
886f6c58d4
commit
50f56affe3
30 changed files with 224 additions and 244 deletions
|
@ -17,7 +17,7 @@ pub struct RecalcStyle<'a> {
|
|||
|
||||
impl<'a> RecalcStyle<'a> {
|
||||
pub fn new(context: LayoutContext<'a>) -> Self {
|
||||
RecalcStyle { context: context }
|
||||
RecalcStyle { context }
|
||||
}
|
||||
|
||||
pub fn context(&self) -> &LayoutContext<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue