diff options
| author | Botahamec <botahamec@outlook.com> | 2022-10-22 22:12:09 -0400 |
|---|---|---|
| committer | Botahamec <botahamec@outlook.com> | 2022-10-22 22:12:09 -0400 |
| commit | e99f4d1ed8e4c1e841fd5520fd2ef41f7adb9dcb (patch) | |
| tree | 49d5674db7ee40ae441d4b78bc29a6466310dba0 /src/unexpected.rs | |
| parent | d248b850a6ce46a36fcbf9f54178a20553763638 (diff) | |
More useful generic bounds
Diffstat (limited to 'src/unexpected.rs')
| -rw-r--r-- | src/unexpected.rs | 2 |
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)), } |
