We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
const
1 parent cb59539 commit 0ebc33eCopy full SHA for 0ebc33e
all-is-cubes/src/save/conversion.rs
@@ -821,7 +821,9 @@ mod universe {
821
/// TODO: Find an alternative not dependent on external state. Perhaps
822
/// serde::DeserializeSeed will do, or if necessary we can modify URef to support
823
/// modification after construction.
824
- static UREF_DESERIALIZATION_CONTEXT: RefCell<Option<DeContext>> = RefCell::new(None);
+ static UREF_DESERIALIZATION_CONTEXT: RefCell<Option<DeContext>> = const {
825
+ RefCell::new(None)
826
+ };
827
}
828
829
struct DeContext {
0 commit comments