Skip to content

Left shift of chained function calls after indexing #6469

Open
@IBims1NicerTobi

Description

@IBims1NicerTobi
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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions