Un-export the `PrivateRoute` inner field as there are invariants
authorMatt Corallo <git@bluematt.me>
Thu, 14 Dec 2023 22:49:58 +0000 (22:49 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 15 Dec 2023 22:31:51 +0000 (22:31 +0000)
commit90cc9930b70244e5febdfc5a734561122c10e051
tree7582e1412b303c6e651aebeb92449ac3bd4233fc
parentb9797ebdd92a74436de6489bd1e1a6fb8990841e
Un-export the `PrivateRoute` inner field as there are invariants

When we make the `PrivateRoute` inner `RouteHint` `pub`, we failed
to note that the `PrivateRoute::new` constructor actually verifies
a length invariant. Thus, we un-export the inner field and force
users to go back through the `new` fn.
lightning-invoice/src/lib.rs