vv9k / podman-api-rs

Rust interface to Podman (libpod).
MIT License
84 stars 12 forks source link

Remove `AsRef<str>` where clauses from `bulder.rs` #118

Closed marhkb closed 2 years ago

marhkb commented 2 years ago

It seems Serialize is enough to make the macro serde_json::json happy.

What did you implement:

It's just a code simplification that makes it possible to use more types without them having to implement AsRef<str>.

How did you verify your change:

I ran the test suite.

What (if anything) would need to be called out in the CHANGELOG for the next release:

I think this doesn't need to be mentioned.

vv9k commented 2 years ago

Thank you!