chipsenkbeil / service-manager-rs

Provides adapters to communicate with various operating system service managers like launchd and systemd
Apache License 2.0
188 stars 15 forks source link

chore: derive basic traits on the service context structs #18

Closed RolandSherwin closed 7 months ago

RolandSherwin commented 7 months ago

We have a thin wrapper around your library which would allow us to mock test our code. But unfortunately, mock_all requires us to implement certain traits on the arguments.

The structs use basic types for its field and there is no sensitive items under it, so I felt it was okay to add Clone and Debug there. Please let me know if there are any concerns when deriving those traits.

chipsenkbeil commented 7 months ago

Thanks! This PR along with #17 are now released via 0.6.0 of the crate.