cleanup: remove use of deprecated method
1 files changed, 1 insertions(+), 1 deletions(-)

M src/main.rs
M src/main.rs +1 -1
@@ 113,7 113,7 @@ fn run() -> Result<(), failure::Error> {
                     let loadstr =
                         &info.components.component[0].variables.variable[0]
                             .value
-                            .trim_right_matches(" kW");
+                            .trim_end_matches(" kW");
                     match loadstr.parse::<f64>() {
                         Ok(kilowatts) => {
                             // Sanity check: 60 kW would be 250 amps