3 ms·
+1 for robust error handling: error!(" Quantum verification failed (this literally cannot happen in Rust)"); error!(" The borrow checker should have pr
by selcuka 1y ago
+1 for robust error handling:
error!(" Quantum verification failed (this literally cannot happen in Rust)");
error!(" The borrow checker should have prevented this...");
error!(" This is probably a cosmic ray bit flip, not a Rust issue");
error!(
" In C++ this would have been a segfault, but Rust gave us a nice error"
);
return Err(format!(" Rust error (still better than C++): {:?}", e).into());
- hulitu 1y agoKids those days. He forgot the /* NOTREACHED */ part. /s