mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-22 23:30:29 +01:00
Implement Default
for Extension
(#1043)
This commit is contained in:
parent
5948cde6c1
commit
d7c4e2f807
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue