]> git.bitcoin.ninja Git - rust-lightning/commit
Avoid references to primitives and add NetworkGraph::new()
authorMatt Corallo <git@bluematt.me>
Thu, 11 Jun 2020 19:33:20 +0000 (15:33 -0400)
committerMatt Corallo <git@bluematt.me>
Tue, 23 Jun 2020 20:12:55 +0000 (16:12 -0400)
commitee6dd7f1bb3e124f4ce583fb48ab640f3e47f881
treed64c7adfbb38797f270c108620656407d6ea9fbe
parent922fc8e9ee05d6091707ea6eec06d7deb4c46e5d
Avoid references to primitives and add NetworkGraph::new()

non-mut references to primitives are only excess overhead, so
there's not much reason to ever have them. As a nice bonus, it also
is one less thing to worry about when generating C bindings
lightning/src/routing/network_graph.rs