tracelogging icon indicating copy to clipboard operation
tracelogging copied to clipboard

register() and unregister() as guard

Open 2ndDerivative opened this issue 7 months ago • 0 comments

I was wondering whether the unsafe {} for Provider registering could be removed by making use of the type system, so you get a handle object that unregisters the provider upon getting dropped. so not dropping the static provider, but dropping a handle struct that calls unregister() on drop

2ndDerivative avatar Jul 01 '25 22:07 2ndDerivative