forked from danobi/vmtest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We the Qemu::new() constructor might as well just consume the Target object, given that it won't be used afterwards. Adjust the signature and then just pull out the members we need instead of cloning them, removing a bunch of unnecessary allocations. Similarly, the CommandContext that we instantiate just for the sake of conveying some data to the template does not need to contain any owned objects. So just work with references to existing ones, eliminating a bunch of more clones. Signed-off-by: Daniel Müller <deso@posteo.net>
- Loading branch information
Showing
2 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters