Skip to content

Conversation

@tamird
Copy link
Contributor

@tamird tamird commented Feb 16, 2025

This causes downstream clippy warnings on #[derive(IOwrite)]:

warning: unneeded unit expression
--> src/types.rs:195:59
|
195 | #[derive(Debug, Copy, Clone, DerivePread, Pwrite, IOread, IOwrite, SizeWith)]
| ^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
= note: this warning originates in the derive macro IOwrite (in Nightly builds, run with -Z macro-backtrace for more info)

This causes downstream clippy warnings on #[derive(IOwrite)]:

  warning: unneeded unit expression
     --> src/types.rs:195:59
      |
  195 | #[derive(Debug, Copy, Clone, DerivePread, Pwrite, IOread, IOwrite, SizeWith)]
      |                                                           ^^^^^^^
      |
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
      = note: this warning originates in the derive macro `IOwrite` (in Nightly builds, run with -Z macro-backtrace for more info)
@tamird
Copy link
Contributor Author

tamird commented Mar 24, 2025

@m4b does this look reasonable to you?

Copy link
Owner

@m4b m4b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great thanks for fixing !

@m4b m4b merged commit 332364a into m4b:master Mar 29, 2025
6 checks passed
@tamird tamird deleted the remove-unit branch April 4, 2025 00:19
@tamird
Copy link
Contributor Author

tamird commented Apr 4, 2025

Would it be possible to cut a release with this?

@m4b
Copy link
Owner

m4b commented Apr 6, 2025

Yea we can do a minor release

@m4b
Copy link
Owner

m4b commented Apr 6, 2025

@tamird released in 0.12.1

@tamird
Copy link
Contributor Author

tamird commented Apr 6, 2025

@m4b doesn't look like it? https://crates.io/crates/scroll/versions

@m4b
Copy link
Owner

m4b commented Apr 6, 2025

scroll_derive contains your change, as well as some others, which was released as 0.12.1

anakryiko pushed a commit to anakryiko/btfdump that referenced this pull request Apr 7, 2025
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.

2 participants