diff options
Diffstat (limited to 'src/diag.rs')
| -rw-r--r-- | src/diag.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/diag.rs b/src/diag.rs index 556d3255..a122fe1f 100644 --- a/src/diag.rs +++ b/src/diag.rs @@ -130,13 +130,13 @@ impl Display for Tracepoint { /// Enrich a [`SourceResult`] with a tracepoint. pub trait Trace<T> { /// Add the tracepoint to all errors that lie outside the `span`. - fn trace<F>(self, world: Tracked<dyn World>, make_point: F, span: Span) -> Self + fn trace<F>(self, world: Tracked<dyn World + '_>, make_point: F, span: Span) -> Self where F: Fn() -> Tracepoint; } impl<T> Trace<T> for SourceResult<T> { - fn trace<F>(self, world: Tracked<dyn World>, make_point: F, span: Span) -> Self + fn trace<F>(self, world: Tracked<dyn World + '_>, make_point: F, span: Span) -> Self where F: Fn() -> Tracepoint, { |
