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 code quality #58

Merged
merged 11 commits into from
Jun 27, 2023
Merged

Fix code quality #58

merged 11 commits into from
Jun 27, 2023

Conversation

srithon
Copy link
Owner

@srithon srithon commented Jun 27, 2023

Closes #57

We have been using Redshift for both brightness and temperature, and yet
part of our code was still using redshift to change the hue rather than
the temperature.
I deeply regret not doing this during development, but to be fair I was
in high school
We need to do this in order to format files with async functions since
rustfmt defaults to the 2015 edition, which does not allow them.
For some reason, rustfmt does not use the edition from Cargo.toml.
See [this issue](rust-lang/rust.vim#368).
This tool is AMAZING.
Also had to go in and fix a couple manually, but still it saved me a ton
of time.
Futures do not run unless awaited, and so `let _ = socket.shutdown()`
was not shutting down the socket at all.
Before I was just acquiring and immediately dropping it without keeping
it in scope for the critical section.
@srithon srithon merged commit 32088c9 into master Jun 27, 2023
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

Successfully merging this pull request may close these issues.

Fix easily-addressable code quality issues
1 participant