From bcf3f4e6cbd7c67268c78db4ba7a9d7267651fa3 Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Sat, 4 Mar 2023 19:33:48 -0800 Subject: cli: clippy --- adenosine-cli/src/pretty.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'adenosine-cli/src/pretty.rs') diff --git a/adenosine-cli/src/pretty.rs b/adenosine-cli/src/pretty.rs index 3d260a3..764a46f 100644 --- a/adenosine-cli/src/pretty.rs +++ b/adenosine-cli/src/pretty.rs @@ -6,10 +6,10 @@ use termcolor::{Color, ColorChoice, ColorSpec, StandardStream, WriteColor}; pub fn pp_thread_post_view(tpv: &ThreadPostView) -> Result<()> { // TODO: this could do better if let Some(parent) = &tpv.parent { - pp_thread_post_view(&parent)?; + pp_thread_post_view(parent)?; }; if let Some(not_found) = &tpv.notFound { - if *not_found == true { + if *not_found { let mut stdout = StandardStream::stdout(ColorChoice::Always); stdout.set_color(ColorSpec::new().set_fg(Some(Color::Red)))?; writeln!( @@ -21,11 +21,11 @@ pub fn pp_thread_post_view(tpv: &ThreadPostView) -> Result<()> { } } if let Some(post) = &tpv.post { - pp_post_view(&post)?; + pp_post_view(post)?; } if let Some(replies) = &tpv.replies { for child in replies { - pp_thread_post_view(&child)?; + pp_thread_post_view(child)?; } }; Ok(()) -- cgit v1.2.3