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

Unnecessary copy in DriverList #1

Open
chrissicool opened this issue Jan 21, 2024 · 0 comments
Open

Unnecessary copy in DriverList #1

chrissicool opened this issue Jan 21, 2024 · 0 comments

Comments

@chrissicool
Copy link
Owner

As of 4718c43 DriverList is defined as follows:

pub struct DriverList {
    drivers: Vec<GenericDriver>,
    current: GenericDriver,
    inspect: bool,
}

current should be a reference to one of the drivers, instead of a copy.

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