Skip to content

Commit b3e52d6

Browse files
committed
this arc is redundant
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
1 parent 8a0f36b commit b3e52d6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

wgpu-core/src/instance.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ fn downlevel_default_limits_less_than_default_limits() {
3434
)
3535
}
3636

37-
#[derive(Debug, Clone)]
38-
pub(crate) struct InstanceDevices(Arc<Mutex<WeakVec<Device>>>);
37+
#[derive(Debug)]
38+
pub(crate) struct InstanceDevices(Mutex<WeakVec<Device>>);
3939

4040
impl Default for InstanceDevices {
4141
fn default() -> Self {
@@ -45,7 +45,7 @@ impl Default for InstanceDevices {
4545

4646
impl InstanceDevices {
4747
pub(crate) fn new() -> Self {
48-
Self(Arc::new(Mutex::new(rank::HUB_OTHER, WeakVec::new())))
48+
Self(Mutex::new(rank::HUB_OTHER, WeakVec::new()))
4949
}
5050

5151
pub(crate) fn push(&self, device: &Arc<Device>) {

0 commit comments

Comments
 (0)