Skip to content

Commit 6bc7f72

Browse files
committed
Resolves PR comments
1 parent f5cf6e7 commit 6bc7f72

File tree

23 files changed

+30
-38
lines changed

23 files changed

+30
-38
lines changed

example_apps/aggregations/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ example-util = { path = "../example_util" }
1313
rand = { workspace = true }
1414
futures-util = { workspace = true }
1515

16-
[[example]]
16+
[[bin]]
1717
name = "aggregations_client"

example_apps/aggregations/examples/aggregations_client.rs renamed to example_apps/aggregations/src/bin/aggregations_client.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ async fn main() -> Result<(), Box<dyn Error>> {
1212

1313
let car_lifecycle = BasicValueDownlinkLifecycle::default()
1414
.on_event_blocking(|speed| println!("/cars/1 speed: {speed}"));
15-
let _car_view = client_handle
15+
client_handle
1616
.value_downlink::<u64>(RemotePath::new(host, "/cars/1", "speed"))
1717
.lifecycle(car_lifecycle)
1818
.open()
1919
.await?;
2020

2121
let area_lifecycle = BasicValueDownlinkLifecycle::default()
2222
.on_event_blocking(|speed| println!("/area/arbury average speed: {speed}"));
23-
let _area_view = client_handle
23+
client_handle
2424
.value_downlink::<f64>(RemotePath::new(host, "/area/arbury", "average_speed"))
2525
.lifecycle(area_lifecycle)
2626
.open()
2727
.await?;
2828

2929
let city_lifecycle = BasicValueDownlinkLifecycle::default()
3030
.on_event_blocking(|speed| println!("/city average speed: {speed}"));
31-
let _city_view = client_handle
31+
client_handle
3232
.value_downlink::<f64>(RemotePath::new(host, "/city", "average_speed"))
3333
.lifecycle(city_lifecycle)
3434
.open()

example_apps/command_lane/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ swimos_form = { workspace = true }
1111
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
1212
example-util = { path = "../example_util" }
1313

14-
[[example]]
14+
[[bin]]
1515
name = "command_client"

example_apps/command_lane/examples/command_client.rs renamed to example_apps/command_lane/src/bin/command_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
1313

1414
let state_lifecycle =
1515
BasicValueDownlinkLifecycle::default().on_event_blocking(|state| println!("{state}"));
16-
let _state_view = client_handle
16+
client_handle
1717
.value_downlink::<i32>(RemotePath::new(host, "/example/1", "lane"))
1818
.lifecycle(state_lifecycle)
1919
.open()

example_apps/demand_lane/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ swimos_client = { workspace = true }
1010
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
1111
example-util = { path = "../example_util" }
1212

13-
[[example]]
13+
[[bin]]
1414
name = "demand_client"

example_apps/demand_lane/examples/demand_client.rs renamed to example_apps/demand_lane/src/bin/demand_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
2020

2121
let demand_lifecycle =
2222
BasicValueDownlinkLifecycle::default().on_event_blocking(|state| println!("{state}"));
23-
let _demand_view = client_handle
23+
client_handle
2424
.value_downlink::<i32>(RemotePath::new(host, "/example/1", "demand"))
2525
.lifecycle(demand_lifecycle)
2626
.open()

example_apps/demand_map_lane/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ swimos_client = { workspace = true }
1010
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
1111
example-util = { path = "../example_util" }
1212

13-
[[example]]
13+
[[bin]]
1414
name = "demand_map_client"

example_apps/demand_map_lane/examples/demand_map_client.rs renamed to example_apps/demand_map_lane/src/bin/demand_map_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
1717

1818
let demand_lifecycle = BasicMapDownlinkLifecycle::default()
1919
.on_update_blocking(|key, _map, _old_state, new_state| println!("{key} -> {new_state}"));
20-
let _demand_map_view = client_handle
20+
client_handle
2121
.map_downlink::<String, i32>(RemotePath::new(host, "/example/1", "demand_map"))
2222
.lifecycle(demand_lifecycle)
2323
.open()

example_apps/http_lane/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ publish = false
88
swimos = { workspace = true, features = ["server", "agent"] }
99
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
1010
example-util = { path = "../example_util" }
11-
12-
[dev-dependencies]
1311
reqwest = { workspace = true }
1412

15-
[[example]]
13+
[[bin]]
1614
name = "http_client"

0 commit comments

Comments
 (0)