From 5127d6497f83ec0dc1858f828742c627c570179c Mon Sep 17 00:00:00 2001 From: fdai7374 Date: Wed, 25 Jan 2023 23:38:51 +0100 Subject: [PATCH] refactoring: sus struct to upper camel case --- src/builtins/mod.rs | 2 +- src/builtins/sus.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/builtins/mod.rs b/src/builtins/mod.rs index 5853b11..19cb5e3 100644 --- a/src/builtins/mod.rs +++ b/src/builtins/mod.rs @@ -38,7 +38,7 @@ const BUILTINS: Lazy)>> = Lazy::new(|| { ("open", Box::new(open::Open)), ("pwd", Box::new(pwd::Pwd)), ("segfault", Box::new(segfault::Segfault)), - ("sus",Box::new(sus::sus)), + ("sus",Box::new(sus::Sus)), ] }); diff --git a/src/builtins/sus.rs b/src/builtins/sus.rs index 3a34089..a84616c 100644 --- a/src/builtins/sus.rs +++ b/src/builtins/sus.rs @@ -2,9 +2,9 @@ use crate::error::ShellError; use crate::builtins::{Builtin, BuiltinConfig}; -pub struct sus; +pub struct Sus; -impl Builtin for sus { +impl Builtin for Sus { fn execute(&mut self, _: &mut BuiltinConfig, _: Vec) -> Result<(), ShellError> { println!(" ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣤⣤⣤⣤⣤⣶⣦⣤⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀