[red-knot] Mark LoggingGuard as must_use (#14356)

This commit is contained in:
David Peter 2024-11-15 12:47:25 +01:00 committed by GitHub
parent ed7b98cf9b
commit 5d8a391a3e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -213,6 +213,7 @@ impl Default for LoggingBuilder {
}
}
#[must_use = "Dropping the guard unregisters the tracing subscriber."]
pub struct LoggingGuard {
_guard: tracing::subscriber::DefaultGuard,
}