mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Use triomphe instead of servo_arc
That's a fork of servo_arc which is updated more recently
This commit is contained in:
parent
2f0718bffa
commit
e7d2c35a07
3 changed files with 16 additions and 16 deletions
|
@ -1,7 +1,7 @@
|
|||
//! module for the SharedArray and related things
|
||||
use core::mem::MaybeUninit;
|
||||
use servo_arc::ThinArc;
|
||||
use std::{fmt::Debug, fmt::Display, ops::Deref};
|
||||
use triomphe::{Arc, HeaderWithLength, ThinArc};
|
||||
|
||||
#[derive(Clone)]
|
||||
#[repr(C)]
|
||||
|
@ -81,8 +81,8 @@ impl<T: Clone> SharedArray<T> {
|
|||
let iter = PaddingFillingIter::new(len, item_iter);
|
||||
|
||||
SharedArray {
|
||||
inner: servo_arc::Arc::into_thin(servo_arc::Arc::from_header_and_iter(
|
||||
servo_arc::HeaderWithLength::new(len, iter.size_hint().0),
|
||||
inner: Arc::into_thin(Arc::from_header_and_iter(
|
||||
HeaderWithLength::new(len, iter.size_hint().0),
|
||||
iter,
|
||||
)),
|
||||
}
|
||||
|
@ -110,8 +110,8 @@ impl<T: Clone + Copy + Default + Sized + 'static> StaticNull for T {
|
|||
let null_iter = &mut std::iter::empty();
|
||||
let iter = PaddingFillingIter::new(len, null_iter);
|
||||
|
||||
servo_arc::Arc::into_thin(servo_arc::Arc::from_header_and_iter(
|
||||
servo_arc::HeaderWithLength::new(len, iter.size_hint().0),
|
||||
Arc::into_thin(Arc::from_header_and_iter(
|
||||
HeaderWithLength::new(len, iter.size_hint().0),
|
||||
iter,
|
||||
))
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue