Skip to content

Conversation

@aliceinwire
Copy link

fix clippy error: very complex type used.
Consider factoring parts into type definitions

Signed-off-by: Alice Ferrazzi [email protected]
Reviewed-by: Luca Barbato [email protected]

fix clippy error: very complex type used.
Consider factoring parts into `type` definitions

Signed-off-by: Alice Ferrazzi <[email protected]>
Reviewed-by: Luca Barbato <[email protected]>
fn try_simple_param_val(
param_type: &str,
) -> Box<dyn Fn(&mut token_stream::IntoIter) -> Option<String>> {
) -> FnTrySimpleParam {
Copy link
Member

Choose a reason for hiding this comment

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

I disagree with clippy here. In any case if a type alias is used, I think it should be put in the same module.

Copy link
Member

@ojeda ojeda Sep 30, 2022

Choose a reason for hiding this comment

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

I tend to agree with @bjorn3, especially if the alias is only used once or a few times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants