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

Minor linting, warning fixes #84

Merged
merged 2 commits into from
Nov 13, 2023
Merged

Minor linting, warning fixes #84

merged 2 commits into from
Nov 13, 2023

Conversation

nyurik
Copy link
Contributor

@nyurik nyurik commented Aug 11, 2023

  • Optimize/cleanup use statements
  • Do not expose scroll_derive as a feature in Cargo.toml
  • Minor clippy lints
  • There is a FIXME in the code that needs to be addressed before merging

The format args inlining was moved to #91

nyurik added a commit to nyurik/scroll that referenced this pull request Aug 11, 2023
* Fix `cargo test --no-default-features` to pass by making std-only tests/docs conditional (added to CI)
* inline format strings, and optimize their usage (using `&arg` with format causes a bit of a performance delay)
* Add MSRV to Cargo.toml
* Do not expose `scroll_derive` as a feature in Cargo.toml
* Minor clippy lints
* Added `Error::Custom(&'static str)` for no-std mode

There are a few `FIXME` in the code where things seemed suspicious
nyurik added a commit to nyurik/scroll that referenced this pull request Aug 11, 2023
* Fix `cargo test --no-default-features` to pass by making std-only tests/docs conditional (added to CI)
* inline format strings, and optimize their usage (using `&arg` with format causes a bit of a performance delay)
* Add MSRV to Cargo.toml
* Do not expose `scroll_derive` as a feature in Cargo.toml
* Minor clippy lints
* Added `Error::Custom(&'static str)` for no-std mode

There are a few `FIXME` in the code where things seemed suspicious
@m4b
Copy link
Owner

m4b commented Nov 5, 2023

@nyurik i'm very sorry I missed/dropped this PR, I don't know if you're still interested, but getting nostd tests passing is definitely something worthwhile.

If you are still interested, I think splitting out just getting nostd tests passing will be useful (and easier to review), and then if you like, fixing various lints and other things as a separate PR.

nyurik added a commit to nyurik/scroll that referenced this pull request Nov 5, 2023
* inline format strings, and optimize their usage (using `&arg` with format causes a bit of a performance delay)
* Add MSRV to Cargo.toml
* Do not expose `scroll_derive` as a feature in Cargo.toml
* Minor clippy lints

There are a few `FIXME` in the code where things seemed suspicious
@nyurik
Copy link
Contributor Author

nyurik commented Nov 5, 2023

@m4b thx for review, i submitted #89 and rebased this PR on top of it

nyurik added a commit to nyurik/scroll that referenced this pull request Nov 5, 2023
* inline format strings, and optimize their usage (using `&arg` with format causes a bit of a performance delay)
* Add MSRV to Cargo.toml
* Do not expose `scroll_derive` as a feature in Cargo.toml
* Minor clippy lints

There are a few `FIXME` in the code where things seemed suspicious
nyurik added a commit to nyurik/scroll that referenced this pull request Nov 5, 2023
* inline format strings, and optimize their usage (using `&arg` with format causes a bit of a performance delay)
* Add MSRV to Cargo.toml
* Do not expose `scroll_derive` as a feature in Cargo.toml
* Minor clippy lints

There are a few `FIXME` in the code where things seemed suspicious
nyurik added a commit to nyurik/scroll that referenced this pull request Nov 5, 2023
* inline format strings, and optimize their usage (using `&arg` with format causes a bit of a performance delay)
* Add MSRV to Cargo.toml
* Do not expose `scroll_derive` as a feature in Cargo.toml
* Minor clippy lints

There are a few `FIXME` in the code where things seemed suspicious
nyurik added a commit to nyurik/scroll that referenced this pull request Nov 6, 2023
* inline format strings, and optimize their usage (using `&arg` with format causes a bit of a performance delay)
* Add MSRV to Cargo.toml
* Do not expose `scroll_derive` as a feature in Cargo.toml
* Minor clippy lints

There are a few `FIXME` in the code where things seemed suspicious
@nyurik nyurik force-pushed the cleanup branch 2 times, most recently from 3bf7506 to e1a5d6a Compare November 6, 2023 05:27
@nyurik nyurik changed the title Add nostd tests and minor linting Minor linting, inline format args Nov 6, 2023
@nyurik nyurik changed the title Minor linting, inline format args Minor linting, warning fixes Nov 6, 2023
@nyurik nyurik force-pushed the cleanup branch 2 times, most recently from fac343c to 330ab9d Compare November 6, 2023 06:02
@nyurik
Copy link
Contributor Author

nyurik commented Nov 13, 2023

@m4b hi, is there anything else that should be fixed in this PR? Thx!

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.

some minor nits

@@ -1,14 +1,7 @@
// this exists primarily to test various API usages of scroll; e.g., must compile
Copy link
Owner

Choose a reason for hiding this comment

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

i don't think this comment needed to be deleted

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thx, reverted

* Optimize/cleanup use statements by using `cargo +nightly fmt -- --config imports_granularity=Module,group_imports=StdExternalCrate`
* Do not expose `scroll_derive` as a feature in Cargo.toml
* Minor clippy lints

- [ ] There is a FIXME in the code that needs to be addressed before merging
@nyurik
Copy link
Contributor Author

nyurik commented Nov 13, 2023

@m4b thx, replied. Could you take a look at https://github.com/m4b/scroll/pull/84/files#diff-b1a35a68f14e696205874893c07fd24fdb88882b47c23cc0e0c80a30c7d53759R273-R274 -- the test in src/lib.rs -- is #![allow(overflowing_literals)] still needed?

@m4b
Copy link
Owner

m4b commented Nov 13, 2023

You could try removing the allow and see what happens? I can't recall what it's there, it was probably added years ago for some reason lost to time :)

@nyurik
Copy link
Contributor Author

nyurik commented Nov 13, 2023

@m4b good point, removed, seems fine :)

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.

thank you for making these changes, it's a bit thankless work so i'm thanking you :)

@m4b m4b merged commit f5beda1 into m4b:master Nov 13, 2023
@nyurik nyurik deleted the cleanup branch November 13, 2023 05:00
@nyurik
Copy link
Contributor Author

nyurik commented Nov 13, 2023

its not thankless if its gets merged :) Thx for working on this!

m4b pushed a commit that referenced this pull request Dec 31, 2023
* Minor linting
* Optimize/cleanup use statements by using `cargo +nightly fmt -- --config imports_granularity=Module,group_imports=StdExternalCrate`
* Do not expose `scroll_derive` as a feature in Cargo.toml
* removing unneeded allow
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