Remove `'static` bound for `impl From<T> for Error`.

This commit is contained in:
Sunli 2022-01-24 10:56:47 +08:00
parent a511ec340a
commit 2b0e29bc92
2 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
# [3.0.24] 2022-1-24
- Remove `'static` bound for `impl From<T> for Error`.
# [3.0.23] 2022-1-19
- Bump hashbrown from `0.11.2` to `0.12.0`.

View File

@ -281,7 +281,7 @@ impl Error {
}
}
impl<T: Display + Send + Sync + 'static> From<T> for Error {
impl<T: Display + Send + Sync> From<T> for Error {
fn from(e: T) -> Self {
Self {
message: e.to_string(),