Open FirelightFlagboy opened 3 months ago
I'm fine with inlining this method, since it's only called in a single place and it has a very simple implementation:
pub fn from_remote_with_local_context(
remote: FolderManifest,
prevent_sync_pattern: Option<&Regex>,
local_manifest: &Self,
timestamp: DateTime,
) -> Self {
Self::from_remote(remote, prevent_sync_pattern).restore_local_confinement_points(
local_manifest,
prevent_sync_pattern,
timestamp,
)
}
However, the logic in restore_local_confinement_points
has to stay in the local_manifest
module to stay consistent with the other methods such as restore_remote_confinement_points
, filter_local_confinement_points
and such.
_Originally posted by @touilleMan in https://github.com/Scille/parsec-cloud/pull/7730#discussion_r1682095470_