Skip to content

Fix the ci#2821

Merged
alamb merged 1 commit intoapache:masterfrom
liukun4515:fix_ci
Jul 1, 2022
Merged

Fix the ci#2821
alamb merged 1 commit intoapache:masterfrom
liukun4515:fix_ci

Conversation

@liukun4515
Copy link
Contributor

@liukun4515 liukun4515 commented Jul 1, 2022

Which issue does this PR close?

NA

Rationale for this change

Looks like clippy is failing on PRs -- for example: https://github.com/apache/arrow-datafusion/runs/7146009434?check_suite_focus=true

Likely due to a new rust version being released: https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1620-2022-06-30

What changes are included in this PR?

Are there any user-facing changes?

@github-actions github-actions bot added the core Core DataFusion crate label Jul 1, 2022
@liukun4515 liukun4515 requested review from alamb, tustvold and viirya July 1, 2022 13:38
&mut docs,
"| {} | {} | {} | {} |",
config.key, config.data_type, config.default_value, config.description
);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason to not use unwrap() here (in case of error)? I don't think it really matters as if writeln! fails writing to a String there are likely to be big problems.

so like

writeln(&mut docs, ....).unwrap()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

got it @alamb
I can do this enhancement with follow-up pr.

@alamb
Copy link
Contributor

alamb commented Jul 1, 2022

I added some comments on the description so it is clear why this change is needed. THanks @liukun4515

@alamb alamb merged commit 5e26b13 into apache:master Jul 1, 2022
@alamb
Copy link
Contributor

alamb commented Jul 1, 2022

Merging to unblock other pRs

@liukun4515 liukun4515 deleted the fix_ci branch July 2, 2022 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants