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

Left shift of chained function calls after indexing #6469

Open
IBims1NicerTobi opened this issue Feb 11, 2025 · 0 comments
Open

Left shift of chained function calls after indexing #6469

IBims1NicerTobi opened this issue Feb 11, 2025 · 0 comments

Comments

@IBims1NicerTobi
Copy link

let right_size = context.wires[self.right]
    .typ
    .try_fully_substitute(&context.type_substitutor)
    .unwrap()
    .unwrap_named()
    .template_args[UUID::from_hidden_value(0)]
.unwrap_value()
.unwrap_integer()
.clone();

This arguably looks odd and should probably be formatted as

let right_size = context.wires[self.right]
    .typ
    .try_fully_substitute(&context.type_substitutor)
    .unwrap()
    .unwrap_named()
    .template_args[UUID::from_hidden_value(0)]
    .unwrap_value()
    .unwrap_integer()
    .clone();
rustfmt --version
rustfmt 1.8.0-stable (90b35a6239 2024-11-26)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants