aboutsummaryrefslogtreecommitdiff
path: root/server/registry/src/register.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-10-11 00:24:11 +0200
committermetamuffin <metamuffin@disroot.org>2025-10-11 00:24:11 +0200
commite68a9eb5e9e15372313f9017be4a2d58fb690bfc (patch)
tree690287a2c71d87c2955e992f1e9575166237188a /server/registry/src/register.rs
parent3fe8ba7f1b9fa7e38fa03f55fd898c8ca2a0e996 (diff)
downloadhurrycurry-e68a9eb5e9e15372313f9017be4a2d58fb690bfc.tar
hurrycurry-e68a9eb5e9e15372313f9017be4a2d58fb690bfc.tar.bz2
hurrycurry-e68a9eb5e9e15372313f9017be4a2d58fb690bfc.tar.zst
clippy + fmt; start using if let chains
Diffstat (limited to 'server/registry/src/register.rs')
-rw-r--r--server/registry/src/register.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/registry/src/register.rs b/server/registry/src/register.rs
index 893b2a1d..473e958a 100644
--- a/server/registry/src/register.rs
+++ b/server/registry/src/register.rs
@@ -15,11 +15,11 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-use crate::{conn_test::test_connect, Registry, MAX_SERVERS};
+use crate::{MAX_SERVERS, Registry, conn_test::test_connect};
use anyhow::Result;
use hurrycurry_protocol::registry::Submission;
use log::{debug, info};
-use rocket::{http::hyper::Uri, post, serde::json::Json, State};
+use rocket::{State, http::hyper::Uri, post, serde::json::Json};
use std::{
net::{IpAddr, SocketAddr},
str::FromStr,