1 2 3 4 5 6 7 8 9 10 11
use crate::ports::editor::EditorPort; use anyhow::Result; #[derive(Default)] pub struct NoopEditor; impl EditorPort for NoopEditor { fn edit(&self, initial: &str) -> Result<String> { Ok(initial.to_string()) } }