all: use trait upcasting
This commit is contained in:
parent
f0caafc862
commit
09e5f89174
44 changed files with 90 additions and 269 deletions
|
|
@ -383,12 +383,7 @@ impl TextTexture {
|
|||
}
|
||||
|
||||
pub fn texture(&self) -> Option<Rc<dyn GfxTexture>> {
|
||||
self.data
|
||||
.textures
|
||||
.front()
|
||||
.tex
|
||||
.get()
|
||||
.map(|t| t.into_texture())
|
||||
self.data.textures.front().tex.get().map(|t| t as _)
|
||||
}
|
||||
|
||||
fn apply_config(&self, on_completed: Rc<dyn OnCompleted>, config: Config<'_>) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue