Implement Default for Extension (#1043)

This commit is contained in:
Christofer Nolander 2022-05-18 17:44:08 +02:00 committed by GitHub
parent 5948cde6c1
commit d7c4e2f807
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
# Unreleased # Unreleased
- None. - **added:** Implement `Default` for `Extension` ([#1043])
# 0.5.6 (15. May, 2022) # 0.5.6 (15. May, 2022)

View file

@ -69,7 +69,7 @@ use tower_service::Service;
/// #[derive(Clone)] /// #[derive(Clone)]
/// struct Foo(&'static str); /// struct Foo(&'static str);
/// ``` /// ```
#[derive(Debug, Clone, Copy)] #[derive(Debug, Clone, Copy, Default)]
pub struct Extension<T>(pub T); pub struct Extension<T>(pub T);
#[async_trait] #[async_trait]