refactor: remove unneeded AtomicBool
Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
@@ -14,7 +14,6 @@ use input::{
|
|||||||
sk_hand::SkHand,
|
sk_hand::SkHand,
|
||||||
};
|
};
|
||||||
use play_space::PlaySpaceBounds;
|
use play_space::PlaySpaceBounds;
|
||||||
use portable_atomic::AtomicBool;
|
|
||||||
use stardust_xr::schemas::dbus::object_registry::ObjectRegistry;
|
use stardust_xr::schemas::dbus::object_registry::ObjectRegistry;
|
||||||
use std::{
|
use std::{
|
||||||
marker::PhantomData,
|
marker::PhantomData,
|
||||||
@@ -207,7 +206,7 @@ pub struct ObjectHandle<I: Interface>(Connection, OwnedObjectPath, PhantomData<I
|
|||||||
|
|
||||||
impl<I: Interface> Clone for ObjectHandle<I> {
|
impl<I: Interface> Clone for ObjectHandle<I> {
|
||||||
fn clone(&self) -> Self {
|
fn clone(&self) -> Self {
|
||||||
Self(self.0.clone(), self.1.clone(), PhantomData::default())
|
Self(self.0.clone(), self.1.clone(), PhantomData)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
impl<I: Interface> Drop for ObjectHandle<I> {
|
impl<I: Interface> Drop for ObjectHandle<I> {
|
||||||
@@ -260,11 +259,9 @@ impl SpatialRef {
|
|||||||
pub struct Tracked(bool);
|
pub struct Tracked(bool);
|
||||||
impl Tracked {
|
impl Tracked {
|
||||||
pub fn new(connection: &Connection, path: &str) -> ObjectHandle<Tracked> {
|
pub fn new(connection: &Connection, path: &str) -> ObjectHandle<Tracked> {
|
||||||
let bool = Arc::new(AtomicBool::new(false));
|
|
||||||
tokio::task::spawn({
|
tokio::task::spawn({
|
||||||
let connection = connection.clone();
|
let connection = connection.clone();
|
||||||
let path = path.to_string();
|
let path = path.to_string();
|
||||||
let bool = bool.clone();
|
|
||||||
async move {
|
async move {
|
||||||
connection
|
connection
|
||||||
.object_server()
|
.object_server()
|
||||||
|
|||||||
Reference in New Issue
Block a user