We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09f4c9f commit 3ef8c72Copy full SHA for 3ef8c72
src/librustdoc/docfs.rs
@@ -69,9 +69,9 @@ impl DocFS {
69
let sender = self.errors.clone().expect("can't write after closing");
70
rayon::spawn(move || {
71
fs::write(&path, contents).unwrap_or_else(|e| {
72
- sender
73
- .send(format!("\"{}\": {}", path.display(), e))
74
- .expect(&format!("failed to send error on \"{}\"", path.display()));
+ sender.send(format!("\"{}\": {}", path.display(), e)).unwrap_or_else(|_| {
+ panic!("failed to send error on \"{}\"", path.display())
+ })
75
});
76
77
Ok(())
0 commit comments