yog_cli/project/toml.rs
1//! TOML, as the build writes it (`Cargo.toml`, `rust-toolchain.toml`): comments.
2
3use yog_codegen::Comments;
4
5/// The TOML language.
6pub struct Toml;
7
8impl Comments for Toml {
9 fn comment(text: &str) -> String {
10 format!("# {text}")
11 }
12
13 /// TOML has no doc comments: a comment it is.
14 fn doc(text: &str) -> String {
15 Self::comment(text)
16 }
17}