Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/Schniz/fnm.rs. An experimental Rust implementation of fnm github.com/Schniz/fnm
Something went wrong. Try again.
1234567891011121314151617181920use super::expression::Expression;use super::shell::Shell;use std::fmt::Write;use std::marker::PhantomData;
#[derive(Debug)]pub(crate) struct Nothing<S: Shell> { shell: PhantomData<S>,}
pub(crate) fn empty_shell_script<S: Shell>(_s: &S) -> Nothing<S> { Nothing { shell: PhantomData }}
impl<S: Shell> Expression<S> for Nothing<S> { fn write_shell(&self, _writer: &mut impl Write) -> std::fmt::Result { Ok(()) }}