We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebf2441 commit 32cd1a9Copy full SHA for 32cd1a9
crates/pet-core/src/lib.rs
@@ -88,6 +88,8 @@ pub trait Locator: Send + Sync {
88
/// impl Locator for MyLocator {
89
/// fn configure(&self, config: &Configuration) {
90
/// if let Some(dirs) = &config.workspace_directories {
91
+ /// // Using unwrap() is acceptable here as mutex poisoning indicates
92
+ /// // a panic in another thread, which is unrecoverable in this context.
93
/// *self.workspace_dirs.lock().unwrap() = dirs.clone();
94
/// }
95
0 commit comments