Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
Frank Villaro-Dixon 2024-04-30 21:11:41 +02:00
parent 6c5f2d05ca
commit 661f2a008d
2 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ impl DatasetRepository {
info!("Will open {full_filename} because not in cache!"); info!("Will open {full_filename} because not in cache!");
let ds = Dataset::open(full_filename.clone()); let ds = Dataset::open(full_filename.clone());
match ds { match ds {
Err(x) => { Err(_) => {
error!("File not present"); error!("File not present");
return None; return None;
} }

View file

@ -10,7 +10,7 @@ use axum::{
use axum_macros::debug_handler; use axum_macros::debug_handler;
use std::env; use std::env;
use serde::ser::{SerializeSeq, Serializer}; use serde::ser::SerializeSeq;
use serde::{Deserialize, Deserializer, Serialize}; use serde::{Deserialize, Deserializer, Serialize};
use serde_qs::axum::{QsQueryConfig, QsQueryRejection}; use serde_qs::axum::{QsQueryConfig, QsQueryRejection};
use tower_http::trace::TraceLayer; use tower_http::trace::TraceLayer;
@ -147,7 +147,7 @@ async fn get_elevation(
#[derive(Serialize)] #[derive(Serialize)]
struct Ele { struct Ele {
elevation: f64, elevation: f64,
}; }
if query_opts.json { if query_opts.json {
let r = Ele { elevation: ele }; let r = Ele { elevation: ele };