Commit 9ed8d02
committed
context: whitelist new compiler warning
The compiler doesn't like shared references to static mut variables,
because it is worried that we'll share a reference while a mutation
happens which is UB.
We are only sharing references after using Once to do a one-time
initialization, so this is fine, but in recent versions of the compiler
there is an encapsulated form of this pattern called `OnceLock` and a
variant called `LazyLock`.
Neither of these are available on our MSRV so just whitelist the lint.1 parent a01b381 commit 9ed8d02
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
0 commit comments