mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 10:49:50 +00:00
[red-knot] Mark LoggingGuard as must_use
(#14356)
This commit is contained in:
parent
ed7b98cf9b
commit
5d8a391a3e
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue