Implement Default for Extension (#1043)

This commit is contained in:
Christofer Nolander
2022-05-18 15:44:08 +00:00
committed by GitHub
parent 5948cde6c1
commit d7c4e2f807
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
# Unreleased
- None.
- **added:** Implement `Default` for `Extension` ([#1043])
# 0.5.6 (15. May, 2022)
+1 -1
View File
@@ -69,7 +69,7 @@ use tower_service::Service;
/// #[derive(Clone)]
/// struct Foo(&'static str);
/// ```
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, Default)]
pub struct Extension<T>(pub T);
#[async_trait]