Skip to content

Commit

Permalink
Small updates to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ollipa committed Aug 22, 2023
1 parent 6b53993 commit 0d29624
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/print_interfaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ fn main() {
let mut socket = NlSocket::connect().unwrap();
let interfaces = socket.list_interfaces().unwrap();
for interface in interfaces {
println!("{:#?}", interface);
println!("{interface:#?}");
}
}
2 changes: 1 addition & 1 deletion examples/print_interfaces_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ async fn main() {
let mut socket = AsyncNlSocket::connect().await.unwrap();
let interfaces = socket.list_interfaces().await.unwrap();
for interface in interfaces {
println!("{:#?}", interface);
println!("{interface:#?}");
}
}
2 changes: 1 addition & 1 deletion examples/print_reg_domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ fn main() {
let mut socket = NlSocket::connect().unwrap();
let domains = socket.get_regulatory_domain().unwrap();
for domain in domains {
println!("{:#?}", domain);
println!("{domain:#?}");
}
}
2 changes: 1 addition & 1 deletion examples/print_stations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn main() {
let interface = interface;
let stations = socket.list_stations(interface.interface_index).unwrap();
for station in stations {
println!("{:#?}", station);
println!("{station:#?}");
}
}
}

0 comments on commit 0d29624

Please sign in to comment.