diff options
| author | Fuwn <[email protected]> | 2024-06-03 15:23:14 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-03 15:23:14 -0700 |
| commit | 19010055c88fd7aac23f3ce39fa6a5ec1cbf9a52 (patch) | |
| tree | 22353b8c7a78b83c992b7bfb60c024fee6f78e3e /crates/whirl_server/src/net | |
| parent | chore(rustfmt): add new rules (diff) | |
| download | whirl-19010055c88fd7aac23f3ce39fa6a5ec1cbf9a52.tar.xz whirl-19010055c88fd7aac23f3ce39fa6a5ec1cbf9a52.zip | |
format: rustfmt with new rules
Diffstat (limited to 'crates/whirl_server/src/net')
| -rw-r--r-- | crates/whirl_server/src/net/network_property.rs | 7 | ||||
| -rw-r--r-- | crates/whirl_server/src/net/property_list.rs | 15 |
2 files changed, 9 insertions, 13 deletions
diff --git a/crates/whirl_server/src/net/network_property.rs b/crates/whirl_server/src/net/network_property.rs index c8d9046..ef793bc 100644 --- a/crates/whirl_server/src/net/network_property.rs +++ b/crates/whirl_server/src/net/network_property.rs @@ -10,10 +10,5 @@ impl NetworkProperty { pub fn _new() -> Self { Self::default() } } impl Default for NetworkProperty { - fn default() -> Self { - Self { - prop_id: 0, - value: "".to_string(), - } - } + fn default() -> Self { Self { prop_id: 0, value: "".to_string() } } } diff --git a/crates/whirl_server/src/net/property_list.rs b/crates/whirl_server/src/net/property_list.rs index 554f344..37fd1e2 100644 --- a/crates/whirl_server/src/net/property_list.rs +++ b/crates/whirl_server/src/net/property_list.rs @@ -1,14 +1,15 @@ // Copyright (C) 2021-2021 The Whirlsplash Collective // SPDX-License-Identifier: GPL-3.0-only -use bytes::{BufMut, BytesMut}; - -use crate::{ - cmd::constants::Command, - net::{ - constants::{PROPACCESS_POSSESS, PROPFLAG_DBSTORE}, - network_property::NetworkProperty, +use { + crate::{ + cmd::constants::Command, + net::{ + constants::{PROPACCESS_POSSESS, PROPFLAG_DBSTORE}, + network_property::NetworkProperty, + }, }, + bytes::{BufMut, BytesMut}, }; #[derive(Clone)] |