### Install the server Source: https://github.com/akappner/mielerestserver/blob/master/README.md Navigate to the parent directory and run the installation script to install the Miele REST server. ```bash cd ../ sudo ./install.sh ``` -------------------------------- ### Generate device keys with virtualenv and generate-keys.py Source: https://github.com/akappner/mielerestserver/blob/master/README.md Set up a Python virtual environment, install dependencies, and generate device keys using the provided script. The keys are saved to ./keys.json. ```bash virtualenv venv source venv/bin/activate pip install -r requirements.txt ../generate-keys.py > ./keys.json ``` -------------------------------- ### Change to helpers directory Source: https://github.com/akappner/mielerestserver/blob/master/README.md Navigate to the 'helpers' directory to access the provisioning scripts and configuration files. ```bash cd helpers/ ``` -------------------------------- ### Install Command for MieleRESTServer.config Source: https://github.com/akappner/mielerestserver/blob/master/templates/config_wizard/config_preview.html Command to install the generated configuration file to /etc/MieleRESTServer.config. Requires saving the config as MieleRESTServer.config first. ```bash sudo install -m 0644 MieleRESTServer.config /etc/MieleRESTServer.config ``` -------------------------------- ### Run dnsmasq DHCP server to assign IP to Miele device Source: https://github.com/akappner/mielerestserver/blob/master/README.md Use this command to start an external DHCP server on the computer connecting to the Miele access point, assigning IPs in the 192.168.1.100-200 range. Replace with your actual WiFi interface name. ```bash sudo dnsmasq --port 0 --no-daemon --dhcp-range=192.168.1.100,192.168.1.200 --dhcp-leasefile=/dev/null -z --conf-file=/dev/null --interface ``` -------------------------------- ### Run key provisioning script Source: https://github.com/akappner/mielerestserver/blob/master/README.md Upload the generated device key to your Miele device using the provisioning script. Replace 192.168.1.50 with the actual IP address of your Miele device. ```bash ./provision-key.sh 192.168.1.50 ./keys.json ``` -------------------------------- ### Run WiFi provisioning script Source: https://github.com/akappner/mielerestserver/blob/master/README.md Run the provisioning script with the IP of your Miele device to connect it to your WiFi. Replace 192.168.0.1 with the actual IP address of your Miele device. ```bash ./provision-wifi.sh 192.168.0.1 ``` -------------------------------- ### Generated Service Configuration YAML Source: https://github.com/akappner/mielerestserver/blob/master/templates/config_wizard/config_preview.html Displays the generated service configuration in YAML format. Shown only when config_yaml is available; otherwise a message indicates missing parameters. ```yaml {{ config_yaml }} ``` -------------------------------- ### Run dhclient to obtain IP from Miele device Source: https://github.com/akappner/mielerestserver/blob/master/README.md Run this command to try to receive an IP address from the Miele device's own DHCP server. Replace with your actual WiFi interface name. ```bash dhclient -v -i ``` -------------------------------- ### Generated Device Keys JSON Source: https://github.com/akappner/mielerestserver/blob/master/templates/config_wizard/config_preview.html Displays the generated device keys in JSON format. Shown only when keys_json is available; otherwise a message indicates missing keys info. ```json {{ keys_json }} ``` -------------------------------- ### Unused import ClientBuilder in src/device_api.rs:2 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning about an unused import. ```rust use reqwest_middleware::{ClientBuilder, Middleware, Next, Result}; ``` -------------------------------- ### Unused import Client in src/device_api.rs:1 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning about an unused import. ```rust use reqwest::{Client, Request, Response}; ``` -------------------------------- ### Could not find DeviceCombiState in state in main.rs:1017 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/notes.txt Compiler error: `DeviceCombiState` not found in `state`. The help suggests importing it via `use crate::DeviceCombiState;` and referring to it directly. ```rust else if (payloader::device::generic::state::DeviceCombiState::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust use crate::DeviceCombiState; ``` ```rust else if (DeviceCombiState::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` -------------------------------- ### Cannot find macro impl_tryfrom_wrapper in combined.rs:64 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/notes.txt Compiler error: macro `impl_tryfrom_wrapper` not found in scope. The help suggests adding `use crate::impl_tryfrom_wrapper;`. ```rust impl_tryfrom_wrapper!(OperationState, E8); ``` ```rust use crate::impl_tryfrom_wrapper; ``` -------------------------------- ### Cannot find macro impl_tryfrom_wrapper in combined.rs:60 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/notes.txt Compiler error: macro `impl_tryfrom_wrapper` not found in scope. The help suggests adding `use crate::impl_tryfrom_wrapper;`. ```rust impl_tryfrom_wrapper!(ApplianceState, E8); ``` ```rust use crate::impl_tryfrom_wrapper; ``` -------------------------------- ### Unused import payloader::device in main.rs:9 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/notes.txt Compiler warning about an unused import `payloader::device`. ```rust use payloader::device; ``` -------------------------------- ### Cannot find macro impl_tryfrom_wrapper in combined.rs:62 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/notes.txt Compiler error: macro `impl_tryfrom_wrapper` not found in scope. The help suggests adding `use crate::impl_tryfrom_wrapper;`. ```rust impl_tryfrom_wrapper!(ProcessState, E8); ``` ```rust use crate::impl_tryfrom_wrapper; ``` -------------------------------- ### Cannot find macro impl_tryfrom_dop2struct (program_step_info.rs) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/f.txt Compiler error: cannot find macro `impl_tryfrom_dop2struct` in scope in src/payloader/device/oven/program_step_info.rs. The suggested fix is to import the macro via its public re-export. ```rust impl_tryfrom_dop2struct!(ProgramStepInfoOven); ``` ```rust use crate::impl_tryfrom_dop2struct; ``` -------------------------------- ### Unused import crate::macros in src/payloader/prelude.rs:9 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning about an unused import. ```rust pub use crate::macros; ``` -------------------------------- ### Cannot find macro impl_tryfrom_dop2struct (program_info.rs) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/f.txt Compiler error: cannot find macro `impl_tryfrom_dop2struct` in scope in src/payloader/device/oven/program_info.rs. The suggested fix is to import the macro via its public re-export. ```rust impl_tryfrom_dop2struct!(ProgramInfoOven); ``` ```rust use crate::impl_tryfrom_dop2struct; ``` -------------------------------- ### Unused import paste::paste in src/main.rs:14 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning about an unused import. ```rust use paste::paste; ``` -------------------------------- ### Unused import crate::macros in src/payloader/device/oven/program_info.rs:24 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning about an unused import. ```rust use crate::macros; ``` -------------------------------- ### Unused import E16 in src/payloader/prelude.rs:4 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning about an unused import. ```rust pub use crate::{E8, E16}; ``` -------------------------------- ### Unused import E16 in src/payloader/device/oven/program_step_info.rs:4 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning about an unused import. ```rust use crate::{E8, E16}; ``` -------------------------------- ### Unused import Digest Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/f.txt Warning at src/crypto.rs:8. The Digest import is unused. ```rust use sha2::{Sha256, Digest}; ``` -------------------------------- ### Deprecated NaiveDateTime::from_timestamp in src/main.rs:81 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/notes.txt Compiler warning that `chrono::NaiveDateTime::from_timestamp` is deprecated; use `DateTime::from_timestamp` instead. The snippet shows the deprecated call. ```rust let naive = NaiveDateTime::from_timestamp(value as i64, 0); ``` -------------------------------- ### #[macro_use] attribute cannot be used on use statements (prelude.rs) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning at src/payloader/prelude.rs:8:1. The `#[macro_use]` attribute is applied to a use statement, which is deprecated and will become a hard error in a future release. The help suggests applying it to crates, extern crates, or modules. ```rust #[macro_use] ``` -------------------------------- ### Deprecated DateTime::::from_utc in src/main.rs:82 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/notes.txt Compiler warning that `chrono::DateTime::::from_utc` is deprecated; use `TimeZone::from_utc_datetime()` or `DateTime::from_naive_utc_and_offset` instead. The snippet shows the deprecated call. ```rust Ok(Dop2TimestampUtc(DateTime::::from_utc(naive, Utc))) ``` -------------------------------- ### Unused variable dop_array Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/f.txt Warning at src/main.rs:646. Prefix with underscore if intentional. ```rust Dop2Payloads::ArrayBool(dop_array) => todo!(), ``` -------------------------------- ### Unused variable rng Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/f.txt Warning at src/crypto.rs:174. Prefix with underscore if intentional. ```rust let rng = rand::rng(); ``` -------------------------------- ### Unused imports Struct and Type in src/main.rs:10 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning about unused imports. The suggested fix is to remove them. ```rust use syn::token::{Struct, Type}; ``` -------------------------------- ### Unused variable in_ty in dop2marshal/src/lib.rs:93 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning about an unused variable. The suggested fix is to prefix it with an underscore. ```rust let in_ty: Type = syn::parse2(args[1].to_token_stream()).unwrap(); ``` ```rust _in_ty ``` -------------------------------- ### Remove unnecessary parentheses around if condition (DeviceCombiState) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/notes.txt Compiler warning for unnecessary parentheses around an if condition in src/main.rs:1017. The suggested fix removes the parentheses around the condition. ```rust else if (payloader::device::generic::state::DeviceCombiState::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloader::device::generic::state::DeviceCombiState::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Unnecessary parentheses around if condition (PSContext) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning at src/main.rs:1025 about unnecessary parentheses around an `if` condition. The suggested fix removes the parentheses. ```rust else if (payloads::PSContext::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::PSContext::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Remove unnecessary parentheses in if condition (DeviceIdent) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Rust compiler warning about unnecessary parentheses around an if condition in src/main.rs:974. The help suggests removing the parentheses to fix the warning. ```rust else if (payloads::DeviceIdent::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::DeviceIdent::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Remove unnecessary parentheses in if condition (DeviceCombiState) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Rust compiler warning about unnecessary parentheses around an if condition in src/main.rs:1015. The help suggests removing the parentheses to fix the warning. ```rust else if (payloads::DeviceCombiState::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::DeviceCombiState::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Remove unnecessary parentheses around if condition (PSContext) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/notes.txt Compiler warning for unnecessary parentheses around an if condition in src/main.rs:1027. The suggested fix removes the parentheses around the condition. ```rust else if (payloads::PSContext::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::PSContext::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Unnecessary parentheses around if condition (DeviceNotifications) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning at src/main.rs:1052 about unnecessary parentheses around an `if` condition. The suggested fix removes the parentheses. ```rust else if (payloads::DeviceNotifications::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::DeviceNotifications::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Macro invocation newtype_int!(E8, u8) in src/main.rs:219 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/notes.txt Macro invocation that expands to `pub struct $name($inner);` and triggers the `AssocTypes` derive macro. The compiler reports unsatisfied trait bounds for `E8: TryFrom` and `E8: TryFrom`. ```rust pub struct $name($inner); ``` ```rust newtype_int!(E8, u8); ``` -------------------------------- ### Re-export of crate public Dop2ParseTreeExpressible in src/payloader/prelude.rs:3 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler error E0365: `Dop2ParseTreeExpressible` is only public within the crate and cannot be re-exported outside. The note suggests declaring the type or module with `pub`. ```rust pub use crate::{Dop2ParseTreeExpressible, DopArray, TaggedDopField, Dop2Struct, Dop2PayloadsKind}; ``` -------------------------------- ### Unnecessary parentheses around if condition (CSContext) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning at src/main.rs:1030 about unnecessary parentheses around an `if` condition. The suggested fix removes the parentheses. ```rust else if (payloads::CSContext::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::CSContext::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Remove unnecessary parentheses in if condition (XkmRequest) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Rust compiler warning about unnecessary parentheses around an if condition in src/main.rs:1010. The help suggests removing the parentheses to fix the warning. ```rust else if (XkmRequest::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if XkmRequest::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Unnecessary parentheses around if condition in src/main.rs:959 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning about unnecessary parentheses around an if condition. The suggested fix is to remove the parentheses. ```rust if (payloads::DeviceContext::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust if payloads::DeviceContext::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Remove unnecessary parentheses around if condition (CSContext) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/notes.txt Compiler warning for unnecessary parentheses around an if condition in src/main.rs:1032. The suggested fix removes the parentheses around the condition. ```rust else if (payloads::CSContext::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::CSContext::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Remove unnecessary parentheses in if condition (RsaKey) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Rust compiler warning about unnecessary parentheses around an if condition in src/main.rs:994. The help suggests removing the parentheses to fix the warning. ```rust else if (payloads::RsaKey::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::RsaKey::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Remove parentheses around if condition for XkmRequest::ATTRIBUTE_IDS Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/f.txt Rust compiler warning at src/main.rs:1009. The condition contains unnecessary parentheses around the if condition. The suggested fix removes the parentheses. ```rust else if (payloads::XkmRequest::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::XkmRequest::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Unnecessary parentheses around if condition (SfValueList) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning at src/main.rs:1020 about unnecessary parentheses around an `if` condition. The suggested fix removes the parentheses. ```rust else if (payloads::SfValueList::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::SfValueList::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Remove unnecessary parentheses around if condition (SfValueList) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/notes.txt Compiler warning for unnecessary parentheses around an if condition in src/main.rs:1022. The suggested fix removes the parentheses around the condition. ```rust else if (payloads::SfValueList::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::SfValueList::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Remove unnecessary parentheses in if condition (ProgramStepInfoOven) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Rust compiler warning about unnecessary parentheses around an if condition in src/main.rs:969. The help suggests removing the parentheses to fix the warning. ```rust else if (payloader::device::oven::program_step_info::ProgramStepInfoOven::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloader::device::oven::program_step_info::ProgramStepInfoOven::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Remove unnecessary parentheses in if condition (FileInfo) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Rust compiler warning about unnecessary parentheses around an if condition in src/main.rs:989. The help suggests removing the parentheses to fix the warning. ```rust else if (payloads::FileInfo::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::FileInfo::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Remove unnecessary parentheses in if condition (FileList) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Rust compiler warning about unnecessary parentheses around an if condition in src/main.rs:984. The help suggests removing the parentheses to fix the warning. ```rust else if (payloads::FileList::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::FileList::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Unnecessary parentheses around else if condition in src/main.rs:964 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning about unnecessary parentheses around an else if condition. The suggested fix is to remove the parentheses. ```rust else if (payloader::device::oven::program_info::ProgramInfoOven::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloader::device::oven::program_info::ProgramInfoOven::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Remove unnecessary parentheses in if condition (DateTimeInfo) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Rust compiler warning about unnecessary parentheses around an if condition in src/main.rs:979. The help suggests removing the parentheses to fix the warning. ```rust else if (payloads::DateTimeInfo::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::DateTimeInfo::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Remove unnecessary parentheses in if condition (FailureList) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Rust compiler warning about unnecessary parentheses around an if condition in src/main.rs:1000. The help suggests removing the parentheses to fix the warning. ```rust else if (payloads::FailureList::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::FailureList::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Unnecessary parentheses around if condition (FeatureList) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning at src/main.rs:1047 about unnecessary parentheses around an `if` condition. The suggested fix removes the parentheses. ```rust else if (payloads::FeatureList::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::FeatureList::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Unused variable trait_ident in dop2marshal/src/lib.rs:11 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning about an unused variable. The suggested fix is to prefix it with an underscore. ```rust let trait_ident = format_ident!("Dop2ParseTreeExpressible"); ``` ```rust _trait_ident ``` -------------------------------- ### Remove unnecessary parentheses around if condition (FeatureList) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/notes.txt Compiler warning for unnecessary parentheses around an if condition in src/main.rs:1049. The suggested fix removes the parentheses around the condition. ```rust else if (payloads::FeatureList::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::FeatureList::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Unnecessary parentheses around if condition in dop2marshal/src/lib.rs:111 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning about unnecessary parentheses around an if condition. The suggested fix is to remove the parentheses. ```rust if (is_option) ``` ```rust if is_option ``` -------------------------------- ### Remove unnecessary parentheses in if condition (UserRequest) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Rust compiler warning about unnecessary parentheses around an if condition in src/main.rs:1005. The help suggests removing the parentheses to fix the warning. ```rust else if (payloads::UserRequest::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::UserRequest::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Unnecessary parentheses around if condition in dop2marshal/src/lib.rs:116 Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning about unnecessary parentheses around an if condition. The suggested fix is to remove the parentheses. ```rust if (constructor_fragments.len() > 0 ) ``` ```rust if constructor_fragments.len() > 0 ``` -------------------------------- ### Unnecessary parentheses around if condition (Failure) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning at src/main.rs:1036 about unnecessary parentheses around an `if` condition. The suggested fix removes the parentheses. ```rust else if (payloads::Failure::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::Failure::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Unnecessary parentheses around if condition (CSHoursOfOperation) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/test.txt Compiler warning at src/main.rs:1042 about unnecessary parentheses around an `if` condition. The suggested fix removes the parentheses. ```rust else if (payloads::CSHoursOfOperation::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::CSHoursOfOperation::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Remove unnecessary parentheses around if condition (Failure) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/notes.txt Compiler warning for unnecessary parentheses around an if condition in src/main.rs:1038. The suggested fix removes the parentheses around the condition. ```rust else if (payloads::Failure::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::Failure::ATTRIBUTE_IDS.contains(&root_node.attribute) ``` -------------------------------- ### Remove unnecessary parentheses around if condition (CSHoursOfOperation) Source: https://github.com/akappner/mielerestserver/blob/master/dop2rs/notes.txt Compiler warning for unnecessary parentheses around an if condition in src/main.rs:1044. The suggested fix removes the parentheses around the condition. ```rust else if (payloads::CSHoursOfOperation::ATTRIBUTE_IDS.contains(&root_node.attribute)) ``` ```rust else if payloads::CSHoursOfOperation::ATTRIBUTE_IDS.contains(&root_node.attribute) ```