summaryrefslogtreecommitdiff
path: root/src/unexpected.rs
diff options
context:
space:
mode:
authorBotahamec <botahamec@outlook.com>2022-10-22 22:12:09 -0400
committerBotahamec <botahamec@outlook.com>2022-10-22 22:12:09 -0400
commite99f4d1ed8e4c1e841fd5520fd2ef41f7adb9dcb (patch)
tree49d5674db7ee40ae441d4b78bc29a6466310dba0 /src/unexpected.rs
parentd248b850a6ce46a36fcbf9f54178a20553763638 (diff)
More useful generic bounds
Diffstat (limited to 'src/unexpected.rs')
-rw-r--r--src/unexpected.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unexpected.rs b/src/unexpected.rs
index 0338ce4..470dd76 100644
--- a/src/unexpected.rs
+++ b/src/unexpected.rs
@@ -90,7 +90,7 @@ impl UnexpectedError {
///
/// let err = UnexpectedError::msg("failed");
/// ```
- pub fn msg<E: Errorable + 'static>(e: E) -> Self {
+ pub fn msg<E: Display + Debug + Send + Sync + 'static>(e: E) -> Self {
Self {
internal: ErrorTy::Message(Box::new(e)),
}