Skip to content

Commit 3c8ba82

Browse files
committed
Fix hir-ty clippy issue
1 parent 8369639 commit 3c8ba82

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

crates/hir-ty/src/next_solver/infer/traits.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ impl ObligationCause {
5555
}
5656
}
5757

58+
impl Default for ObligationCause {
59+
#[inline]
60+
fn default() -> Self {
61+
Self::new()
62+
}
63+
}
64+
5865
/// An `Obligation` represents some trait reference (e.g., `i32: Eq`) for
5966
/// which the "impl_source" must be found. The process of finding an "impl_source" is
6067
/// called "resolving" the `Obligation`. This process consists of

0 commit comments

Comments
 (0)