|
|
|
|
|
by nextaccountic
952 days ago
|
|
I mean, allocate something like static ALLOCATION_ERROR: Box<dyn Error> = (something); and then use this variable whenever there is an allocation error. you might need unsafe { } but that's okay, the stdlib is full of unsafe |
|