diff options
author | bryan newbold <bnewbold@robocracy.org> | 2023-03-04 19:33:48 -0800 |
---|---|---|
committer | bryan newbold <bnewbold@robocracy.org> | 2023-03-04 19:33:48 -0800 |
commit | bcf3f4e6cbd7c67268c78db4ba7a9d7267651fa3 (patch) | |
tree | 4ed892a8f186a8d50ff799bd0a7abc318b88f872 /adenosine-cli/src | |
parent | 6942f47747f8655cf0702422f457f0476ab29c41 (diff) | |
download | adenosine-bcf3f4e6cbd7c67268c78db4ba7a9d7267651fa3.tar.gz adenosine-bcf3f4e6cbd7c67268c78db4ba7a9d7267651fa3.zip |
cli: clippy
Diffstat (limited to 'adenosine-cli/src')
-rw-r--r-- | adenosine-cli/src/pretty.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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(()) |