style: cargo fmt — fix formatting drift blocking the release gate
Whitespace-only reflow in storage.rs/seed.rs/update.rs (rustfmt line- wrapping rules) and app_ports.rs (array literal reflow after the port list grew). No logic change. tests/release/run.sh's cargo-fmt --check stage was failing on this before v1.7.119-alpha could be cut. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
09ab5f6b11
commit
37d293be59
@@ -590,9 +590,10 @@ mod tests {
|
||||
|
||||
let dir_a = dir.path().to_path_buf();
|
||||
let dir_b = dir.path().to_path_buf();
|
||||
let add_task = tokio::spawn(async move {
|
||||
add_node(&dir_a, make_node("did:key:zB", "b.onion")).await
|
||||
});
|
||||
let add_task =
|
||||
tokio::spawn(
|
||||
async move { add_node(&dir_a, make_node("did:key:zB", "b.onion")).await },
|
||||
);
|
||||
let trust_task = tokio::spawn(async move {
|
||||
set_trust_level(&dir_b, "did:key:zA", TrustLevel::Observer).await
|
||||
});
|
||||
@@ -703,7 +704,10 @@ mod tests {
|
||||
assert!(result.is_empty(), "returned Vec must be empty");
|
||||
|
||||
let nodes = load_nodes(dir.path()).await.unwrap();
|
||||
assert!(nodes.is_empty(), "load_nodes must return an empty Vec, not an error");
|
||||
assert!(
|
||||
nodes.is_empty(),
|
||||
"load_nodes must return an empty Vec, not an error"
|
||||
);
|
||||
|
||||
let removed = load_removed_dids(dir.path()).await.unwrap();
|
||||
assert!(
|
||||
|
||||
@@ -6,39 +6,7 @@
|
||||
//! no listener, so allowing them is inert.
|
||||
|
||||
pub const APP_LAUNCH_PORTS: &[u16] = &[
|
||||
2283,
|
||||
2342,
|
||||
3000,
|
||||
3001,
|
||||
3002,
|
||||
4080,
|
||||
5180,
|
||||
7778,
|
||||
8080,
|
||||
8081,
|
||||
8082,
|
||||
8083,
|
||||
8084,
|
||||
8085,
|
||||
8087,
|
||||
8088,
|
||||
8089,
|
||||
8090,
|
||||
8096,
|
||||
8123,
|
||||
8175,
|
||||
8176,
|
||||
8240,
|
||||
8334,
|
||||
8888,
|
||||
8999,
|
||||
9000,
|
||||
9100,
|
||||
10380,
|
||||
11434,
|
||||
18081,
|
||||
18083,
|
||||
23000,
|
||||
32838,
|
||||
50002,
|
||||
2283, 2342, 3000, 3001, 3002, 4080, 5180, 7778, 8080, 8081, 8082, 8083, 8084, 8085, 8087, 8088,
|
||||
8089, 8090, 8096, 8123, 8175, 8176, 8240, 8334, 8888, 8999, 9000, 9100, 10380, 11434, 18081,
|
||||
18083, 23000, 32838, 50002,
|
||||
];
|
||||
|
||||
@@ -602,7 +602,11 @@ mod tests {
|
||||
.map(|_| MasterSeed::generate().unwrap().0.to_string())
|
||||
.collect();
|
||||
let unique: std::collections::HashSet<&String> = mnemonics.iter().collect();
|
||||
assert_eq!(unique.len(), mnemonics.len(), "duplicate mnemonics generated");
|
||||
assert_eq!(
|
||||
unique.len(),
|
||||
mnemonics.len(),
|
||||
"duplicate mnemonics generated"
|
||||
);
|
||||
|
||||
// 64 × 24 = 1536 draws from the 2048-word list should hit ~1080
|
||||
// distinct words; a low-entropy source concentrates on far fewer.
|
||||
|
||||
@@ -1703,7 +1703,15 @@ pub async fn apply_update(data_dir: &Path) -> Result<()> {
|
||||
|
||||
// Idle-priority IO — same reasoning as the frontend tarball.
|
||||
let extract = host_sudo(&[
|
||||
"ionice", "-c3", "nice", "-n10", "tar", "-xzf", &archive, "-C", &staging_new,
|
||||
"ionice",
|
||||
"-c3",
|
||||
"nice",
|
||||
"-n10",
|
||||
"tar",
|
||||
"-xzf",
|
||||
&archive,
|
||||
"-C",
|
||||
&staging_new,
|
||||
])
|
||||
.await
|
||||
.with_context(|| format!("Failed to extract {}", name))?;
|
||||
|
||||
Reference in New Issue
Block a user