mirror of https://github.com/astral-sh/ruff
[red-knot] Mark LoggingGuard as `must_use` (#14356)
This commit is contained in:
parent
ed7b98cf9b
commit
5d8a391a3e
|
|
@ -213,6 +213,7 @@ impl Default for LoggingBuilder {
|
|||
}
|
||||
}
|
||||
|
||||
#[must_use = "Dropping the guard unregisters the tracing subscriber."]
|
||||
pub struct LoggingGuard {
|
||||
_guard: tracing::subscriber::DefaultGuard,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue