fn write_context_entry( formatter: &mut Formatter<'_>, first: &mut bool, key: &str, value: impl Display, ) -> Result