cortex_m_log/destination/
dummy.rs

1//! Dummy module
2
3use core::fmt;
4
5/// Dummy destination
6pub struct Dummy;
7
8impl fmt::Write for Dummy {
9    #[inline]
10    fn write_str(&mut self, _: &str) -> fmt::Result {
11        Ok(())
12    }
13
14    #[inline]
15    fn write_char(&mut self, _: char) -> fmt::Result {
16        Ok(())
17    }
18
19    #[inline]
20    fn write_fmt(&mut self, _: fmt::Arguments) -> fmt::Result {
21        Ok(())
22    }
23}