Skip to content

Commit

Permalink
Update docs/tutorials/data_provider.md
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Bastian <[email protected]>
  • Loading branch information
sffc and robertbastian authored Aug 29, 2023
1 parent 4881735 commit 2c5b1b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/data_provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ where
// we consider the "resolved locale". Although `HelloWorldFormatter` only loads
// one key, this is a useful distinction for most other formatters.
if M::KEY == HelloWorldV1Marker::KEY {
let mut w = self.resolved_locale.write().unwrap();
let mut w = self.resolved_locale.write().expect("poison");
*w = res.metadata.locale.take();
}
Ok(res)
Expand Down

0 comments on commit 2c5b1b3

Please sign in to comment.