Skip to content

Signing implementation currently not interchangeable (impl trait return) #2173

Closed
@yanganto

Description

@yanganto

The return type of SignBuilder is a bug.

impl as a return type only helps simplify your type signatures
https://doc.rust-lang.org/rust-by-example/trait/impl_trait.html

It will not be a generic thing as you think.
https://stackoverflow.com/questions/52001592/why-can-impl-trait-not-be-used-to-return-multiple-conditional-types

Your project uses tab not space, but the Sign trait implementation is mixed with tab and space here
https://github.com/extrawurst/gitui/blob/5d68ea0e397ea65dce6c8aeb653b1c43918c78e1/asyncgit/src/sync/sign.rs#L122-L134

You don't like a simple and working solution #2047, but implement a buggy trait with unnecessary complexity to force me to follow, or want me to solve your issue for free and in silence.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions