Skip to content

Naming/location of Node struct #20

Description

@futurechimp

The Node struct is currently in a weird location in the code. When using it from the nym-client I'm currently building, errors point to very misleading file location:

error[E0277]: `sphinx::route::Node` doesn't implement `std::fmt::Debug`
  --> src/clients/directory.rs:49:9
   |
49 |         assert_eq!(expected, mixes.as_slice());
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `sphinx::route::Node` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`

I look in /header/routing/nodes.rs (which I can see in my file tree) but it's not there. It seems to be living in /route.rs.

What is the difference between these two locations? Can we name things a bit better to make the differences clearer?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions