devpage 0.2.3

Live documents from a repository: sites, docs and slides from Markdown, and UI designs drawn from code — with comments, link checking and PDF
1
2
3
4
5
6
7
8
9
10
11
12
13
//! The terminal `devpage` runs in, as the preview's reporter: each problem
//! found while serving is printed on standard error the first time.

use crate::check::Report;
use crate::problem::Problem;

pub struct Terminal;

impl Report for Terminal {
    fn problem(&self, problem: &Problem) {
        eprintln!("{problem}");
    }
}