diff --git a/Cargo.toml b/Cargo.toml index 15748f8..054c38a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,11 @@ name = "se_ms_api" path = "src/se_ms_api.rs" [dependencies] -chrono = "0.4" reqwest = { version = "0.11", features = ["json", "blocking"] } serde = { version = "1", features = ["derive"] } lazy_static = "1.4" + +[dependencies.chrono] +version = "0.4" +default-features = false +features = ["clock"] diff --git a/deny.toml b/deny.toml index 4398bd9..e42c76c 100644 --- a/deny.toml +++ b/deny.toml @@ -73,6 +73,7 @@ allow = [ "MIT", "Apache-2.0", "BSD-3-Clause", + "Unicode-DFS-2016", #"Apache-2.0 WITH LLVM-exception", ] # List of explicitly disallowed licenses @@ -199,8 +200,8 @@ allow-git = [] [sources.allow-org] # 1 or more github.com organizations to allow git sources for -github = [""] +#github = [""] # 1 or more gitlab.com organizations to allow git sources for -gitlab = [""] +#gitlab = [""] # 1 or more bitbucket.org organizations to allow git sources for -bitbucket = [""] +#bitbucket = [""] diff --git a/tests/integration_reqs_test.rs b/tests/integration_reqs_test.rs index 3b4aeb6..d00d3d0 100644 --- a/tests/integration_reqs_test.rs +++ b/tests/integration_reqs_test.rs @@ -332,7 +332,7 @@ fn site_overview_integration_test() { panic!("Unexpected value."); } - assert!(r.overview.current_power.power > 0.0); + assert!(r.overview.current_power.power >= 0.0); assert_eq!(r.overview.measured_by, "INVERTER".to_string()); } Err(e) => {