Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can u add Clone implementation for Conf? #495

Open
historydev opened this issue Nov 13, 2024 · 0 comments
Open

Can u add Clone implementation for Conf? #495

historydev opened this issue Nov 13, 2024 · 0 comments

Comments

@historydev
Copy link

https://docs.rs/miniquad/0.4.6/miniquad/conf/struct.Conf.html

#[derive(Debug, Default)]
pub struct Game {
    window_conf: Conf,
}

impl Game {
    pub fn start(&self) {
        start(self.window_conf, || Box::new(Self::default()));
//               ^^^^^^^^^ - Cannot Move
    } 
}
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

No branches or pull requests

1 participant