You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was expecting valuable to work out of the box with tracing's macros (info, debug etc). However, I get an issue saying Value is not implemented for my type (i.e. there is no blanket implementation covering all types that implement Valuable). This currently seems like the only way to make tracing happy:
for(service, old_state)in removed {info!(service = &service as &dyn Valuable,"Service unit removed");self.service_state.remove(&service);}
Please let me know if this was an oversight, or if there's a fundamental limitation preventing the compiler from auto-coercing my type (RemoteServiceId) that implements Valuable to Value?
The text was updated successfully, but these errors were encountered:
I was expecting valuable to work out of the box with tracing's macros (
info
,debug
etc). However, I get an issue sayingValue
is not implemented for my type (i.e. there is no blanket implementation covering all types that implement Valuable). This currently seems like the only way to make tracing happy:Please let me know if this was an oversight, or if there's a fundamental limitation preventing the compiler from auto-coercing my type (
RemoteServiceId
) that implements Valuable to Value?The text was updated successfully, but these errors were encountered: