mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Tidy up ServeSession now that trait bounds are gone
This commit is contained in:
parent
8ebe7e332b
commit
9c790eddd7
1 changed files with 0 additions and 5 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue