Skip to main content

max / synckit

client: say why the provider install result is discarded in tests The fn doc explained why the tests install a crypto provider but not why the Result is dropped. Err means one is already installed, which is the outcome the Once is there to produce. Closes GoingsOn problem 6d8b7822.
Co-Authored-By
Claude Opus 5 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-08-01 20:23 UTC
Signed with PGP, not checked
Commit: 56929001497f1a83db1612e76e5b850fee7bc846
Parent: 7b5c2ed
1 file changed, +1 insertion, -0 deletions
@@ -52,6 +52,7 @@
52 52 fn ensure_crypto_provider() {
53 53 static PROVIDER: std::sync::Once = std::sync::Once::new();
54 54 PROVIDER.call_once(|| {
55 + // Err means a provider is already installed, which is the outcome we want.
55 56 let _ = rustls::crypto::ring::default_provider().install_default();
56 57 });
57 58 }