Skip to content

Commit 6fbcfb5

Browse files
committed
rename function in ascii_art
1 parent 0b91af0 commit 6fbcfb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/ui/ascii_art.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ impl<'a> Tokens<'a> {
164164
colored_segment.push(chr);
165165
}
166166
Token::Color(col) => {
167-
add_colored_segment(&mut whole_string, &colored_segment, *color, bold);
167+
add_styled_segment(&mut whole_string, &colored_segment, *color, bold);
168168
colored_segment = String::new();
169169
color = colors
170170
.get(col as usize)
@@ -177,7 +177,7 @@ impl<'a> Tokens<'a> {
177177
};
178178
});
179179

180-
add_colored_segment(&mut whole_string, &colored_segment, *color, bold);
180+
add_styled_segment(&mut whole_string, &colored_segment, *color, bold);
181181
(0..width).for_each(|_| whole_string.push(' '));
182182
whole_string
183183
}
@@ -195,7 +195,7 @@ fn succeed_when<I>(predicate: impl FnOnce(I) -> bool) -> impl FnOnce(I) -> Optio
195195
}
196196
}
197197

198-
fn add_colored_segment(base: &mut String, segment: &str, color: DynColors, bold: bool) {
198+
fn add_styled_segment(base: &mut String, segment: &str, color: DynColors, bold: bool) {
199199
let mut style = Style::new().color(color);
200200
if bold {
201201
style = style.bold();

0 commit comments

Comments
 (0)