Redis – Why can't Box<dyn Trait> be pased to a function with &mut Trait as parameter
I'm sure this has been asked previously but haven't encountered a question that captures the precise scenario here. I have the following code: let mut pool: Box<dyn redis::aio::ConnectionLike> = <...> redis::cmd(COMMAND) .arg(LIST) .arg(value) .query_async(&mut pool) .await .unwrap(); This returns the…