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
Rust docs for ToString explicitly recommend implementing Display instead:
This trait is automatically implemented for any type which implements the Display trait. As such, ToString shouldn’t be implemented directly: Display should be implemented instead, and you get the ToString implementation for free.
The text was updated successfully, but these errors were encountered:
wiktor-k
added a commit
to wiktor-k/nethsm-sdk-rs
that referenced
this issue
Sep 18, 2024
I've noticed that some enums such as
SystemState
implementToString
:https://github.com/Nitrokey/nethsm-sdk-rs/blob/main/src/models/system_state.rs#L22-L30
Rust docs for
ToString
explicitly recommend implementingDisplay
instead:The text was updated successfully, but these errors were encountered: