Skip to content

Remove the generic argument from Drawable::draw#559

Merged
icefoxen merged 1 commit into
ggez:masterfrom
ozkriff:i556_drawable_trait_object
Jan 18, 2019
Merged

Remove the generic argument from Drawable::draw#559
icefoxen merged 1 commit into
ggez:masterfrom
ozkriff:i556_drawable_trait_object

Conversation

@ozkriff

@ozkriff ozkriff commented Jan 18, 2019

Copy link
Copy Markdown
Contributor

Closes #556

Un-nested mesh creation calls because of the conflicting ctx arguments:

227 |         graphics::draw(
    |         -------------- first borrow later used by call
228 |             ctx,
    |             --- first mutable borrow occurs here
229 |             &graphics::Mesh::new_rectangle(ctx, graphics::DrawMode::Fill, self.pos.into(), color)?,
    |                                            ^^^ second mutable borrow occurs here

What do you think?

@icefoxen icefoxen merged commit 60cfa61 into ggez:master Jan 18, 2019
@ozkriff ozkriff deleted the i556_drawable_trait_object branch January 18, 2019 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants