diff options
author | eri <eri@inventati.org> | 2024-03-11 11:24:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-11 10:24:36 +0000 |
commit | a6e25d555beec2c454c03f9ca0f5c4047d538b2d (patch) | |
tree | 2bf5504d7b8f3733072d39c6a6858f14694a0ca3 /components/layout/flow_ref.rs | |
parent | 7f1ef4c7fe7d68b08894eb0e944448505178f79d (diff) | |
download | servo-a6e25d555beec2c454c03f9ca0f5c4047d538b2d.tar.gz servo-a6e25d555beec2c454c03f9ca0f5c4047d538b2d.zip |
clippy: Fix warnings in `components/layout` (#31612)
* clippy: fix warnings in components/layout
* fix: formatting
Diffstat (limited to 'components/layout/flow_ref.rs')
-rw-r--r-- | components/layout/flow_ref.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/layout/flow_ref.rs b/components/layout/flow_ref.rs index b0955e66448..4657db77040 100644 --- a/components/layout/flow_ref.rs +++ b/components/layout/flow_ref.rs @@ -49,6 +49,7 @@ impl FlowRef { /// See <https://github.com/servo/servo/issues/6503>. /// Use Arc::get_mut instead when possible (e.g. on an Arc that was just created). #[allow(unsafe_code)] + #[allow(clippy::should_implement_trait)] pub fn deref_mut(this: &mut FlowRef) -> &mut dyn Flow { let ptr: *const dyn Flow = &*this.0; unsafe { &mut *(ptr as *mut dyn Flow) } |