-
-
Notifications
You must be signed in to change notification settings - Fork 253
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
style: simplify some statements for readability #1962
base: develop
Are you sure you want to change the base?
style: simplify some statements for readability #1962
Conversation
f2221d7
to
064f167
Compare
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 updated rustup
to match the version in CI. This should fix failing formatting checks.
pgrx/src/datum/unbox.rs
Outdated
type As<'src> = &'src str where Self: 'src; | ||
type As<'src> | ||
= &'src str | ||
where | ||
Self: 'src; |
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 would prefer not to?
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.
That's how the version of rustup
in CI formats things.
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.
Ugh.
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.
Can these have #[rustfmt::skip]
instead?
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.
Hmm... I'll take a look right now.
064f167
to
16a789f
Compare
let sql_graph_entity_fn_name = syn::Ident::new( | ||
&format!("__pgrx_internals_aggregate_{}", snake_case_target_ident), | ||
&format!("__pgrx_internals_aggregate_{snake_case_target_ident}"), | ||
target_ident.span(), |
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.
All the cases where this Ident::new
pattern is used should remain the same for reasons that are somewhat complex and have to do with "this pattern is suboptimal, but dtolnay/quote#206 is too, and it's not just a formatting difference."
Tests can be fixed with |
16a789f
to
e7fd0ef
Compare
Closes #1961