-
Notifications
You must be signed in to change notification settings - Fork 3
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
Device screen UI #46
Device screen UI #46
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a couple style/performance comments
Co-authored-by: Will Greenberg <[email protected]>
Co-authored-by: Will Greenberg <[email protected]>
bin/src/daemon.rs
Outdated
2 => { | ||
fb.draw_gif(img); | ||
}, | ||
3 => { | ||
fb.draw_img(img) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 => { | |
fb.draw_gif(img); | |
}, | |
3 => { | |
fb.draw_img(img) | |
} | |
2 | 3 => { | |
fb.draw_gif(img.unwrap()); | |
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope these are separate functions, I have split out draw gif and draw image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also we arleady unwrap and return a result in 138/140 no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OH duh. and img
is an Option
, so we need to unwrap it again here
Co-authored-by: Will Greenberg <[email protected]>
Co-authored-by: Will Greenberg <[email protected]>
No description provided.