tool: Support downcasting generic Ec

Removes the `impl Access for &mut dyn Access` I added earlier. But that
hasn't proven too useful.
This commit is contained in:
Ian Douglas Scott
2021-02-19 07:41:25 -08:00
committed by Jeremy Soller
parent 171257916c
commit 2768925ec6
4 changed files with 13 additions and 20 deletions

View File

@ -245,14 +245,6 @@ impl<A: Access> Ec<A> {
self.command(Cmd::LedSetColor, &mut data)
}
pub fn as_dyn(&mut self) -> Ec<&mut dyn Access> {
Ec {
access: &mut self.access,
version: self.version,
}
}
pub fn into_dyn(self) -> Ec<Box<dyn Access>>
where A: 'static {
Ec {