chore: Fix clippy for upcoming 1.79 Rust release (#12727)
1.79 is due for release in a week. Release Notes: - N/A
This commit is contained in:
parent
a0c0f1ebcd
commit
377e24b798
11 changed files with 20 additions and 21 deletions
|
@ -201,7 +201,7 @@ mod sys {
|
|||
|
||||
#[link(name = "CoreFoundation", kind = "framework")]
|
||||
#[link(name = "CoreVideo", kind = "framework")]
|
||||
#[allow(improper_ctypes)]
|
||||
#[allow(improper_ctypes, unknown_lints, clippy::duplicated_attributes)]
|
||||
extern "C" {
|
||||
pub fn CVDisplayLinkCreateWithActiveCGDisplays(
|
||||
display_link_out: *mut *mut CVDisplayLink,
|
||||
|
|
|
@ -63,7 +63,9 @@ impl TaffyLayoutEngine {
|
|||
let parent_id = self
|
||||
.taffy
|
||||
// This is safe because LayoutId is repr(transparent) to taffy::tree::NodeId.
|
||||
.new_with_children(taffy_style, unsafe { std::mem::transmute(children) })
|
||||
.new_with_children(taffy_style, unsafe {
|
||||
std::mem::transmute::<&[LayoutId], &[taffy::NodeId]>(children)
|
||||
})
|
||||
.expect(EXPECT_MESSAGE)
|
||||
.into();
|
||||
self.children_to_parents
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue