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 MSRV & Windows clippy warning #35

Merged
merged 3 commits into from Feb 8, 2023

Conversation

g0hl1n
Copy link
Contributor

@g0hl1n g0hl1n commented Dec 5, 2022

This PR updates all dependencies to their latest version. Namely this is:

  • nix: 0.25 => 0.26
  • env_logger: 0.9 => 0.10

Furthermore bump the MSRV to 1.60.0 as this is required by env_logger v0.10.0 (see rust-cli/env_logger@660cf7f).

@g0hl1n
Copy link
Contributor Author

g0hl1n commented Jan 11, 2023

Friendly ping @estokes @berkowski. Any feedback on this PR?

@estokes
Copy link
Collaborator

estokes commented Jan 11, 2023

Sorry, been busy lately I'll look at this soon

This is needed as nix v0.26.0 raised its MSRV to 1.56.1. For more
information please see the changelog:
	https://github.com/nix-rust/nix/blob/master/CHANGELOG.md#0260---2022-11-29

Or the corresponding PR:
	nix-rust/nix#1792

Signed-off-by: Richard Leitner <dev@g0hl1n.net>
This fixes following clippy warning:

	Error:    --> src\lib.rs:605:31
	    |
	605 |         let handle = unsafe { mem::transmute(handle) };
	    |                               ^^^^^^^^^^^^^^^^^^^^^^
	    |
	    = note: `-D clippy::useless-transmute` implied by `-D warnings`
	    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_transmute

Signed-off-by: Richard Leitner <dev@g0hl1n.net>
This is needed as env_logger v0.10.0 raised its MSRV to 1.60.0. For more
information please see the corresponding commit or PR:
    rust-cli/env_logger@660cf7f
    rust-cli/env_logger#248

Signed-off-by: Richard Leitner <dev@g0hl1n.net>
@g0hl1n g0hl1n changed the title Update nix and env_logger dependencies Fix MSRV & Windows tests Jan 13, 2023
@g0hl1n g0hl1n changed the title Fix MSRV & Windows tests Fix MSRV & Windows clippy warning Jan 13, 2023
@g0hl1n
Copy link
Contributor Author

g0hl1n commented Jan 13, 2023

Adapted the PR to current master. (dropped the dependency updates).

@g0hl1n
Copy link
Contributor Author

g0hl1n commented Feb 8, 2023

Friendly ping @estokes @berkowski. Any feedback on this PR?

@estokes estokes merged commit 4ef3198 into berkowski:master Feb 8, 2023
@g0hl1n g0hl1n deleted the g0hl1n_update-nix branch February 8, 2023 12:52
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.

None yet

2 participants