From 638b449e6fa3cd3374c575b71fb594faf5c7de42 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Fri, 13 Dec 2024 17:08:15 +0100 Subject: [PATCH] format --- .../mounts_and_neighbors/listmounts.rs | 29 +------------------ .../mounts_and_neighbors/listneighbors.rs | 4 +-- 2 files changed, 2 insertions(+), 31 deletions(-) diff --git a/src/commands/mounts_and_neighbors/listmounts.rs b/src/commands/mounts_and_neighbors/listmounts.rs index 3f39d24..c971add 100644 --- a/src/commands/mounts_and_neighbors/listmounts.rs +++ b/src/commands/mounts_and_neighbors/listmounts.rs @@ -1,35 +1,8 @@ use crate::{ - commands::{ - Command, RequestParserResult, ResponseAttributes, ResponseParserError, - }, + commands::{Command, RequestParserResult, ResponseAttributes, ResponseParserError}, Request, }; -// pub struct Unmount; - -// impl Command for Unmount { -// type Response = (); -// const COMMAND: &'static str = "unmount"; - -// fn parse_request(mut parts: std::str::SplitWhitespace<'_>) -> RequestParserResult<'_> { -// let path = parts -// .next() -// .ok_or(RequestParserError::UnexpectedEOF)? -// .to_string(); - -// debug_assert!(parts.next().is_none()); - -// Ok((Request::Unmount(path), "")) -// } - -// fn parse_response( -// parts: ResponseAttributes<'_>, -// ) -> Result { -// debug_assert!(parts.is_empty()); -// Ok(()) -// } -// } - pub struct ListMounts; impl Command for ListMounts { diff --git a/src/commands/mounts_and_neighbors/listneighbors.rs b/src/commands/mounts_and_neighbors/listneighbors.rs index e8a5ddf..89a5156 100644 --- a/src/commands/mounts_and_neighbors/listneighbors.rs +++ b/src/commands/mounts_and_neighbors/listneighbors.rs @@ -1,7 +1,5 @@ use crate::{ - commands::{ - Command, RequestParserResult, ResponseAttributes, ResponseParserError, - }, + commands::{Command, RequestParserResult, ResponseAttributes, ResponseParserError}, Request, };