clippy
Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
parent
6c5f2d05ca
commit
661f2a008d
2 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ impl DatasetRepository {
|
|||
info!("Will open {full_filename} because not in cache!");
|
||||
let ds = Dataset::open(full_filename.clone());
|
||||
match ds {
|
||||
Err(x) => {
|
||||
Err(_) => {
|
||||
error!("File not present");
|
||||
return None;
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ use axum::{
|
|||
use axum_macros::debug_handler;
|
||||
use std::env;
|
||||
|
||||
use serde::ser::{SerializeSeq, Serializer};
|
||||
use serde::ser::SerializeSeq;
|
||||
use serde::{Deserialize, Deserializer, Serialize};
|
||||
use serde_qs::axum::{QsQueryConfig, QsQueryRejection};
|
||||
use tower_http::trace::TraceLayer;
|
||||
|
@ -147,7 +147,7 @@ async fn get_elevation(
|
|||
#[derive(Serialize)]
|
||||
struct Ele {
|
||||
elevation: f64,
|
||||
};
|
||||
}
|
||||
|
||||
if query_opts.json {
|
||||
let r = Ele { elevation: ele };
|
||||
|
|
Loading…
Reference in a new issue