Apply rustfmt to entire workspace
Runs cargo fmt --all; all 573 tests still passing, clippy still clean. No logic changes — formatting only. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
3d524e2d63
commit
1c107fe58a
@@ -63,10 +63,7 @@ pub fn filter_packets(
|
||||
/// Compute the remote HEAD for a given selector on the local `OnionFile`.
|
||||
///
|
||||
/// Returns [`NO_PARENT`] if no revisions match (full sync needed).
|
||||
pub fn remote_head_for_selector(
|
||||
_selector: &SyncSelector,
|
||||
remote_revision_count: u64,
|
||||
) -> u64 {
|
||||
pub fn remote_head_for_selector(_selector: &SyncSelector, remote_revision_count: u64) -> u64 {
|
||||
// For a simple linear sync, remote HEAD = remote_revision_count - 1
|
||||
// (or NO_PARENT if empty).
|
||||
if remote_revision_count == 0 {
|
||||
@@ -131,8 +128,11 @@ mod tests {
|
||||
fn selector_branch_nonexistent_errors() {
|
||||
let onion = make_onion(2);
|
||||
let packets = diff_revisions(&onion, NO_PARENT).unwrap();
|
||||
let result =
|
||||
filter_packets(packets, &SyncSelector::Branch("no-such".to_string()), &onion);
|
||||
let result = filter_packets(
|
||||
packets,
|
||||
&SyncSelector::Branch("no-such".to_string()),
|
||||
&onion,
|
||||
);
|
||||
assert!(matches!(result, Err(SyncOnionError::BranchNotFound(_))));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user