From 119b1309069cf418c5257a625d927b3208edade0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateus=20Felipe=20Gon=C3=A7alves?= Date: Fri, 24 Nov 2023 17:35:09 +0000 Subject: [PATCH] style(clippy): fix linting issues --- src/main.rs | 2 +- src/shapes/triangle/view.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index e80c10f..28d641d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,7 +11,7 @@ use clap::Parser; fn main() { let cli = CLI::parse(); - print!("\n"); + println!(); match &cli.command { Some(Commands::Square(square::Command { base, height })) => square::view(*base, *height), diff --git a/src/shapes/triangle/view.rs b/src/shapes/triangle/view.rs index 3eecdba..4f8e5de 100644 --- a/src/shapes/triangle/view.rs +++ b/src/shapes/triangle/view.rs @@ -31,7 +31,7 @@ pub fn view( tui::title("Area"), tui::content(triangle.get_area().to_string().as_str()) ); - print!("\n"); + println!(); println!( "{}{}", tui::title("Perimeter"),