Add explicit dyn trait casts

So Rust Analyzer stops complaining.
This commit is contained in:
Robbert van der Helm
2022-04-15 19:31:38 +02:00
parent 8eaecb6e5c
commit cab0af5153
7 changed files with 13 additions and 7 deletions

View File

@@ -308,7 +308,8 @@ impl Plugin for Crisp {
const SAMPLE_ACCURATE_AUTOMATION: bool = true;
fn params(&self) -> Arc<dyn Params> {
self.params.clone()
// The explicit cast is not needed, but Rust Analyzer gets very upset when you don't do it
self.params.clone() as Arc<dyn Params>
}
fn editor(&self) -> Option<Box<dyn Editor>> {