Skip to content

Leaked private struct in public function #672

Closed
@conradludgate

Description

@conradludgate

Bug Report

Version

0.4.3

Platform

N/A

Description

In the add_service function on Router, you are retuning a new Router which uses Or as a type parameter. While Or itself is a public struct, its only public inside its module, since the module it lives in is private.

On the Rust Discord, they suggested that this really is a bug in Rust itself, but it would be a breaking change to fix so it's probably expected in Rust 2024... Regardless, it should be fixed. I'm not sure if we just want to make the module public or re-export the struct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions