mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-25 07:06:12 +00:00
Tidy up ServeSession now that trait bounds are gone
This commit is contained in:
@@ -83,9 +83,6 @@ pub struct ServeSession {
|
|||||||
tree_mutation_sender: Sender<PatchSet>,
|
tree_mutation_sender: Sender<PatchSet>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Methods that need thread-safety bounds on VfsFetcher are limited to this
|
|
||||||
/// block to prevent needing to spread Send + Sync + 'static into everything
|
|
||||||
/// that handles ServeSession.
|
|
||||||
impl ServeSession {
|
impl ServeSession {
|
||||||
/// Start a new serve session from the given in-memory filesystem and start
|
/// Start a new serve session from the given in-memory filesystem and start
|
||||||
/// path.
|
/// path.
|
||||||
@@ -166,9 +163,7 @@ impl ServeSession {
|
|||||||
vfs,
|
vfs,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
impl ServeSession {
|
|
||||||
pub fn tree_handle(&self) -> Arc<Mutex<RojoTree>> {
|
pub fn tree_handle(&self) -> Arc<Mutex<RojoTree>> {
|
||||||
Arc::clone(&self.tree)
|
Arc::clone(&self.tree)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user