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

Fix ugly clone #23

Open
github-actions bot opened this issue Aug 25, 2021 · 0 comments
Open

Fix ugly clone #23

github-actions bot opened this issue Aug 25, 2021 · 0 comments

Comments

@github-actions
Copy link

Line: 346

gyromouse//src/mapping.rs

Lines 343 to 353 in 9a79e56

for i in self.current_layers.iter().rev() {
if let Some(layer) = layers.get(i) {
if layer.is_good() {
// TODO: Fix ugly clone
return layer.clone();
}
}
}
Layer::default()
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants