Skip to content

Commit 956c480

Browse files
Schmarni-Devtechnobaboo
authored andcommitted
refactor: remove unneeded AtomicBool
Signed-off-by: Schmarni <marnistromer@gmail.com>
1 parent b60071f commit 956c480

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/objects/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use input::{
1414
sk_hand::SkHand,
1515
};
1616
use play_space::PlaySpaceBounds;
17-
use portable_atomic::AtomicBool;
1817
use stardust_xr::schemas::dbus::object_registry::ObjectRegistry;
1918
use std::{
2019
marker::PhantomData,
@@ -207,7 +206,7 @@ pub struct ObjectHandle<I: Interface>(Connection, OwnedObjectPath, PhantomData<I
207206

208207
impl<I: Interface> Clone for ObjectHandle<I> {
209208
fn clone(&self) -> Self {
210-
Self(self.0.clone(), self.1.clone(), PhantomData::default())
209+
Self(self.0.clone(), self.1.clone(), PhantomData)
211210
}
212211
}
213212
impl<I: Interface> Drop for ObjectHandle<I> {
@@ -260,11 +259,9 @@ impl SpatialRef {
260259
pub struct Tracked(bool);
261260
impl Tracked {
262261
pub fn new(connection: &Connection, path: &str) -> ObjectHandle<Tracked> {
263-
let bool = Arc::new(AtomicBool::new(false));
264262
tokio::task::spawn({
265263
let connection = connection.clone();
266264
let path = path.to_string();
267-
let bool = bool.clone();
268265
async move {
269266
connection
270267
.object_server()

0 commit comments

Comments
 (0)