mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 03:36:06 +00:00
Refcount entries in snapshot context, moving towards sharing
This commit is contained in:
parent
c3f6a17bae
commit
15cbbacc2f
2 changed files with 6 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
|||
//! Initialization routines that are used by more than one Rojo command or
|
||||
//! utility.
|
||||
|
||||
use std::path::Path;
|
||||
use std::{path::Path, sync::Arc};
|
||||
|
||||
use rbx_dom_weak::RbxInstanceProperties;
|
||||
|
||||
|
|
@ -41,7 +41,8 @@ pub fn start<F: VfsFetcher>(
|
|||
// If the project file defines no plugins, then there's no need to
|
||||
// initialize the snapshot plugin context.
|
||||
if !project.plugins.is_empty() {
|
||||
snapshot_context.plugin_context = Some(SnapshotPluginContext::new(&project.plugins));
|
||||
snapshot_context.plugin_context =
|
||||
Some(Arc::new(SnapshotPluginContext::new(&project.plugins)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue