Skip to content

Commit

Permalink
Fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MikMuellerDev committed Oct 15, 2022
1 parent 8714d1b commit 85aae6c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ infrared-rs = "0.2.0"
log = "0.4.17"
serde = "1.0.145"
smarthome-sdk-rs = "0.6.1"
tokio = "1.21.2"
tokio = { version = "1.21.2", features = ["macros", "rt-multi-thread"] }
toml = "0.5.9"
2 changes: 1 addition & 1 deletion src/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub async fn lint_actions<'act>(
for action in actions {
results.push(ActionExecRes {
result: client
.exec_homescript_code(action.homescript.clone(), vec![], true)
.exec_homescript_code(&action.homescript.clone(), vec![], true)
.await?,
name: &action.name,
})
Expand Down
2 changes: 1 addition & 1 deletion src/scanner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub async fn start_scan(client: Client, device: Scanner, actions: &[Action]) ->
async fn handle_action(client: Arc<Client>, action: Action) {
trace!("Executing HMS code on Smarthome server...");
match client
.exec_homescript_code(action.homescript, vec![], false)
.exec_homescript_code(&action.homescript, vec![], false)
.await
{
Ok(res) => match res.success {
Expand Down

0 comments on commit 85aae6c

Please sign in to comment.