Skip to content

Commit

Permalink
fixup: docs and clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed May 17, 2024
1 parent 912df1b commit 5f8b0f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions framework_crates/bones_framework/src/networking/lan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ pub async fn prepare_to_host<'a>(
let my_addr = ep.my_addr().await.expect("network endpoint dead");
let port = ep.local_addr().0.port();
let mut props = std::collections::HashMap::default();
let addr_encoded = hex::encode(&postcard::to_stdvec(&my_addr).unwrap());
let addr_encoded = hex::encode(postcard::to_stdvec(&my_addr).unwrap());
props.insert("node-addr".to_string(), addr_encoded);
let service = mdns_sd::ServiceInfo::new(
MDNS_SERVICE_TYPE,
Expand Down Expand Up @@ -379,7 +379,7 @@ async fn lan_start_server(
.enumerate()
.filter(|x| x.0 != i)
.for_each(|(i, conn)| {
let id = get_remote_node_id(&conn).expect("invalid connection");
let id = get_remote_node_id(conn).expect("invalid connection");
let mut addr = NodeAddr::new(id);
if let Some(info) = endpoint.connection_info(id) {
if let Some(relay_url) = info.relay_url {
Expand Down
2 changes: 1 addition & 1 deletion framework_crates/bones_framework/src/networking/online.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Contains the online matchmaker and the [`NetworkSocket`] implementation.
Contains the online matchmaker.

## Matchmaking

Expand Down

0 comments on commit 5f8b0f3

Please sign in to comment.