Fix serve session clippy lints (#684)

The fifth in a series of PRs that aim to get CI passing
This commit is contained in:
Kenneth Loeffler
2023-06-30 11:05:30 -07:00
committed by GitHub
parent e9efa238b0
commit 5b1a090c5e

View File

@@ -102,12 +102,11 @@ impl ServeSession {
log::trace!("Starting new ServeSession at path {}", start_path.display());
let project_path;
if Project::is_project_file(start_path) {
project_path = Cow::Borrowed(start_path);
let project_path = if Project::is_project_file(start_path) {
Cow::Borrowed(start_path)
} 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());
@@ -127,7 +126,7 @@ impl ServeSession {
let instance_context = InstanceContext::default();
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");
let patch_set = compute_patch_set(snapshot, &tree, root_id);