rust-embedded-community / embedded-nal

An Embedded Network Abstraction Layer
Apache License 2.0
177 stars 25 forks source link

Change blocking Dns::get_host_by_address back to mutable self #100

Closed MathiasKoch closed 9 months ago

MathiasKoch commented 9 months ago

This aligns the signature of the blocking Dns trait with get_host_by_name, by re-adding the &mut self and nb::Error result type.

It used to be this way, but it seems like https://github.com/rust-embedded-community/embedded-nal/pull/93# was a bit too fast on copying over the async api.

Ping @Dirbaio