systeroid/systeroid-core
Matthias Beyer f0b811d5f6
refactor(sysctl): Refactor some controller code (#146)
* Refactor if-let-Some into less complex expression

This makes the code a bit less "mutable", so to say.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>

* Simplify boolean expression

This patch refactors the two nested if expressions into one if.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>

* Refactor for-iteration into fn chain

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>

* Replace if-else with fn chaining

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>

* Replace if-else with fn chaining

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>

* Use explicit import for error type

---------

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2023-10-28 15:18:09 +02:00
..
src refactor(sysctl): Refactor some controller code (#146) 2023-10-28 15:18:09 +02:00
Cargo.toml chore(deps): bump serde from 1.0.188 to 1.0.189 (#140) 2023-10-17 11:26:05 +02:00