We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a0f36b commit b3e52d6Copy full SHA for b3e52d6
1 file changed
wgpu-core/src/instance.rs
@@ -34,8 +34,8 @@ fn downlevel_default_limits_less_than_default_limits() {
34
)
35
}
36
37
-#[derive(Debug, Clone)]
38
-pub(crate) struct InstanceDevices(Arc<Mutex<WeakVec<Device>>>);
+#[derive(Debug)]
+pub(crate) struct InstanceDevices(Mutex<WeakVec<Device>>);
39
40
impl Default for InstanceDevices {
41
fn default() -> Self {
@@ -45,7 +45,7 @@ impl Default for InstanceDevices {
45
46
impl InstanceDevices {
47
pub(crate) fn new() -> Self {
48
- Self(Arc::new(Mutex::new(rank::HUB_OTHER, WeakVec::new())))
+ Self(Mutex::new(rank::HUB_OTHER, WeakVec::new()))
49
50
51
pub(crate) fn push(&self, device: &Arc<Device>) {
0 commit comments