|
|
|
|
@ -97,7 +97,7 @@ fn get_min_start_max_end(lines: &[&str]) -> (usize, usize) {
@@ -97,7 +97,7 @@ fn get_min_start_max_end(lines: &[&str]) -> (usize, usize) {
|
|
|
|
|
|
|
|
|
|
/// Produces a series of lines which have been automatically truncated to the
|
|
|
|
|
/// correct width
|
|
|
|
|
impl<'a> Iterator for AsciiArt<'a> { |
|
|
|
|
impl Iterator for AsciiArt<'_> { |
|
|
|
|
type Item = String; |
|
|
|
|
fn next(&mut self) -> Option<String> { |
|
|
|
|
self.content |
|
|
|
|
@ -136,7 +136,7 @@ impl Token {
@@ -136,7 +136,7 @@ impl Token {
|
|
|
|
|
/// An iterator over tokens found within the *.ascii format.
|
|
|
|
|
#[derive(Clone, Debug)] |
|
|
|
|
struct Tokens<'a>(&'a str); |
|
|
|
|
impl<'a> Iterator for Tokens<'a> { |
|
|
|
|
impl Iterator for Tokens<'_> { |
|
|
|
|
type Item = Token; |
|
|
|
|
fn next(&mut self) -> Option<Token> { |
|
|
|
|
let (s, tok) = color_token(self.0) |
|
|
|
|
|