From bcffec05800df502a0218baae08c108161c41211 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Sat, 4 Jan 2020 15:16:54 -0500 Subject: [PATCH] modified configuration.rs --- src/config.rs | 3 ++- src/main.rs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 13d25cb..0986799 100644 --- a/src/config.rs +++ b/src/config.rs @@ -5,6 +5,7 @@ extern crate serde_json; use std::fs::File; use std::io::{BufReader, Read}; use std::path::Path; +use std::future::Future; use reqwest::Client; use select::document::Document; @@ -50,7 +51,7 @@ impl Configuration { ipaddr = self.ipaddr, port = self.port ); - + let response = reqwest::get(&request).unwrap(); let document = Document::from_read(response).unwrap(); let next = document.find(Name("power-mode")).next().unwrap(); diff --git a/src/main.rs b/src/main.rs index 0c0b490..5ca92a3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,6 +16,7 @@ use serde_json::Result; mod app; mod config; mod generate; +mod led; fn main() { let configuration = config::init_config();