remove useless prints

This commit is contained in:
Alex Janka 2023-12-28 13:21:31 +11:00
parent 9dbe2ac82a
commit 83ded0e30d
2 changed files with 1 additions and 10 deletions

View file

@ -56,15 +56,6 @@ async fn main() {
match products { match products {
Ok(res) => match res.first() { Ok(res) => match res.first() {
Some(teslatte::products::Product::Vehicle(vehicle)) => { Some(teslatte::products::Product::Vehicle(vehicle)) => {
// match api.wake_up(&vehicle.vin).await {
// Ok(_r) => {
// println!("woke up! response: {_r:#?}");
// }
// Err(e) => {
// println!("error waking up: {e:#?}");
// }
// }
server::launch_server(server::ServerState { server::launch_server(server::ServerState {
config, config,
api, api,

View file

@ -61,7 +61,7 @@ impl Handler for UiStatic {
.segments::<rocket::http::uri::Segments<'_, Path>>(0..) .segments::<rocket::http::uri::Segments<'_, Path>>(0..)
.ok() .ok()
.and_then(|segments| segments.to_path_buf(true).ok()); .and_then(|segments| segments.to_path_buf(true).ok());
println!("path: {path:#?}");
match path { match path {
Some(p) => { Some(p) => {
if p.as_os_str() == "" { if p.as_os_str() == "" {