From 65aa133d70f9a8f8917f013e23ef5d053abe01c5 Mon Sep 17 00:00:00 2001 From: fdai7374 Date: Thu, 2 Feb 2023 18:33:08 +0100 Subject: [PATCH] refactoring: reformat and import sort in logout --- src/builtins/logout.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/builtins/logout.rs b/src/builtins/logout.rs index 97f2859..f601542 100644 --- a/src/builtins/logout.rs +++ b/src/builtins/logout.rs @@ -1,16 +1,15 @@ -use system_shutdown::logout; use crate::builtins::{Builtin, BuiltinConfig}; use crate::error::ShellError; +use system_shutdown::logout; pub struct Logout; impl Builtin for Logout { fn execute(&mut self, _: &mut BuiltinConfig, _: Vec) -> Result<(), ShellError> { - match logout() { - Ok(_)=>println!("Logging out"), - Err(error) => eprintln!("Failed to log out: {}", error), - } + match logout() { + Ok(_) => println!("Logging out"), + Err(error) => eprintln!("Failed to log out: {}", error), + } Ok(()) - } } \ No newline at end of file