RIOT-OS / rust-riot-wrappers

The `riot-wrappers` crate, which enables high-level access to RIOT from the Rust programming language
13 stars 10 forks source link

regression: shell `.and()` usability suffered since 0.7 #76

Closed chrysn closed 2 months ago

chrysn commented 9 months ago

Updating the riot-examples shell_threads code (that was still on wrapper -0.7), I found that Rust now often complains about the need for a type annotation. The new code was primarily tested with static commands, where this didn't show.

The example now works around it by feeding the builder through an impl trait typed identity function, but that's terrible. Best chance is probably just to hide the shell::Command type and use RPITIT for .and() now that we have it, maybe that solves things already.