mirror of
https://github.com/seemueller-io/hyper-custom-cert.git
synced 2025-09-08 22:46:45 +00:00
- Downgrade edition
from 2024 to 2021 in Cargo.toml files for compatibility.
- Fix nested `if let` statements to improve readability and correctness. - Reorganize imports for consistency and structure.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "example"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
edition = "2021"
|
||||
|
||||
[features]
|
||||
# No-op features used only by the example to allow conditional compilation in docs/examples.
|
||||
|
@@ -1,12 +1,12 @@
|
||||
use axum::{
|
||||
Router,
|
||||
extract::{Path, Query},
|
||||
response::Json,
|
||||
routing::{delete, get, post, put},
|
||||
Router,
|
||||
};
|
||||
use hyper_custom_cert::HttpClient;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::{Value, json};
|
||||
use serde_json::{json, Value};
|
||||
use std::collections::HashMap;
|
||||
use std::time::Duration;
|
||||
|
||||
|
Reference in New Issue
Block a user