-
Notifications
You must be signed in to change notification settings - Fork 38
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
Conversation
* 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
* 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 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. |
* 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
* 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
* 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
* 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
* 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
3bf7506
to
e1a5d6a
Compare
fac343c
to
330ab9d
Compare
@m4b hi, is there anything else that should be fixed in this PR? Thx! |
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.
some minor nits
@@ -1,14 +1,7 @@ | |||
// this exists primarily to test various API usages of scroll; e.g., must compile |
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.
i don't think this comment needed to be deleted
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.
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
@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 |
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 :) |
@m4b good point, removed, seems fine :) |
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.
thank you for making these changes, it's a bit thankless work so i'm thanking you :)
its not thankless if its gets merged :) Thx for working on this! |
* 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
scroll_derive
as a feature in Cargo.tomlThe format args inlining was moved to #91