pretty_exec_lib/log/github_actions/
group_closing.rs1use super::super::{Log, Logger};
2use std::fmt::{self, Display, Formatter};
3
4#[must_use]
5pub struct GroupClosing;
6
7impl<'a, Prompt: ?Sized, Program: ?Sized, Arguments: ?Sized> Display
8 for Logger<'a, GroupClosing, Prompt, Program, Arguments>
9{
10 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
11 write!(f, "::endgroup::")
12 }
13}
14
15impl<'a, Prompt: ?Sized, Program: ?Sized, Arguments: ?Sized> Log
16 for Logger<'a, GroupClosing, Prompt, Program, Arguments>
17{
18 fn log(&self) {
19 println!("{self}");
20 }
21}