mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Fix serve session clippy lints (#684)
The fifth in a series of PRs that aim to get CI passing
This commit is contained in:
parent
e9efa238b0
commit
5b1a090c5e
1 changed files with 5 additions and 6 deletions
|
|
@ -102,12 +102,11 @@ impl ServeSession {
|
||||||
|
|
||||||
log::trace!("Starting new ServeSession at path {}", start_path.display());
|
log::trace!("Starting new ServeSession at path {}", start_path.display());
|
||||||
|
|
||||||
let project_path;
|
let project_path = if Project::is_project_file(start_path) {
|
||||||
if Project::is_project_file(start_path) {
|
Cow::Borrowed(start_path)
|
||||||
project_path = Cow::Borrowed(start_path);
|
|
||||||
} else {
|
} else {
|
||||||
project_path = Cow::Owned(start_path.join("default.project.json"));
|
Cow::Owned(start_path.join("default.project.json"))
|
||||||
}
|
};
|
||||||
|
|
||||||
log::debug!("Loading project file from {}", project_path.display());
|
log::debug!("Loading project file from {}", project_path.display());
|
||||||
|
|
||||||
|
|
@ -127,7 +126,7 @@ impl ServeSession {
|
||||||
let instance_context = InstanceContext::default();
|
let instance_context = InstanceContext::default();
|
||||||
|
|
||||||
log::trace!("Generating snapshot of instances from VFS");
|
log::trace!("Generating snapshot of instances from VFS");
|
||||||
let snapshot = snapshot_from_vfs(&instance_context, &vfs, &start_path)?;
|
let snapshot = snapshot_from_vfs(&instance_context, &vfs, start_path)?;
|
||||||
|
|
||||||
log::trace!("Computing initial patch set");
|
log::trace!("Computing initial patch set");
|
||||||
let patch_set = compute_patch_set(snapshot, &tree, root_id);
|
let patch_set = compute_patch_set(snapshot, &tree, root_id);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue