We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbfe831 commit 46dea25Copy full SHA for 46dea25
src/onefetch/info.rs
@@ -270,13 +270,11 @@ impl std::fmt::Display for Info {
270
panic!("No image backend found")
271
}
272
} else {
273
- let mut logo_lines;
274
-
275
- if let Some(custom_ascii) = &self.config.ascii_input {
276
- logo_lines = AsciiArt::new(custom_ascii, Vec::new(), !self.config.no_bold);
+ let mut logo_lines = if let Some(custom_ascii) = &self.config.ascii_input {
+ AsciiArt::new(custom_ascii, Vec::new(), !self.config.no_bold)
277
278
- logo_lines = AsciiArt::new(self.get_ascii(), self.colors(), !self.config.no_bold);
279
- }
+ AsciiArt::new(self.get_ascii(), self.colors(), !self.config.no_bold)
+ };
280
281
loop {
282
match (logo_lines.next(), info_lines.next()) {
0 commit comments