Un-export the `PrivateRoute` inner field as there are invariants
[rust-lightning] / lightning-invoice / src / lib.rs
index 89763aa758915dff924fd6155604f5a27f308bcf..c2e1ecf2d923c926db4385ef6ba4e75769b4ced6 100644 (file)
@@ -527,7 +527,7 @@ impl Ord for Bolt11InvoiceSignature {
 /// The encoded route has to be <1024 5bit characters long (<=639 bytes or <=12 hops)
 ///
 #[derive(Clone, Debug, Hash, Eq, PartialEq, Ord, PartialOrd)]
-pub struct PrivateRoute(pub RouteHint);
+pub struct PrivateRoute(RouteHint);
 
 /// Tag constants as specified in BOLT11
 #[allow(missing_docs)]