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

shadow-rs: Fix linter on generated code #124

Merged
merged 1 commit into from
Dec 14, 2022
Merged

Conversation

sameo
Copy link
Contributor

@sameo sameo commented Dec 14, 2022

The generated print_built_in() function triggers uninlined_format_args linter warning.
See https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

With that fix, it generates "\tprintln!("FOO: {FOO}");\n" code strings.

Signed-off-by: Samuel Ortiz [email protected]

The generated print_built_in() function triggers uninlined_format_args
linter warning.
See https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

With that fix, it generates `"\tprintln!("FOO: {FOO}");\n"` code
strings.

Signed-off-by: Samuel Ortiz <[email protected]>
@baoyachi
Copy link
Owner

@sameo Wow, your speed is so fast, I am going to submit it, you have already changed it.

It's same as #125

@baoyachi
Copy link
Owner

Thx again. @sameo

@sameo
Copy link
Contributor Author

sameo commented Dec 14, 2022

@sameo Wow, your speed is so fast, I am going to submit it, you have already changed it.

It's same as #125

haha :) I was 2 minutes faster ;-)
Feel free to take whatever PR you prefer, fine with me.

@baoyachi baoyachi merged commit 2411391 into baoyachi:master Dec 14, 2022
sameo added a commit to sameo/attestation-service that referenced this pull request Dec 14, 2022
crates.io shadow_rs makes clippy fail, but this is fixed with
baoyachi/shadow-rs#123 and
baoyachi/shadow-rs#124.

Signed-off-by: Samuel Ortiz <[email protected]>
sameo added a commit to confidential-containers/attestation-service that referenced this pull request Dec 16, 2022
crates.io shadow_rs makes clippy fail, but this is fixed with
baoyachi/shadow-rs#123 and
baoyachi/shadow-rs#124.

Signed-off-by: Samuel Ortiz <[email protected]>
Xynnn007 pushed a commit to Xynnn007/kbs that referenced this pull request Nov 10, 2023
crates.io shadow_rs makes clippy fail, but this is fixed with
baoyachi/shadow-rs#123 and
baoyachi/shadow-rs#124.

Signed-off-by: Samuel Ortiz <[email protected]>
Xynnn007 pushed a commit to confidential-containers/trustee that referenced this pull request Nov 10, 2023
crates.io shadow_rs makes clippy fail, but this is fixed with
baoyachi/shadow-rs#123 and
baoyachi/shadow-rs#124.

Signed-off-by: Samuel Ortiz <[email protected]>
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