We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03c5baf commit c658a99Copy full SHA for c658a99
1 file changed
src/list/state.rs
@@ -233,15 +233,15 @@ impl<'a> ListState<'a> {
233
)?;
234
next_ln(stdout)?;
235
236
- let hotkey = |writer: &mut MaxLenWriter, hotkey| -> io::Result<()> {
+ fn hotkey(writer: &mut MaxLenWriter, hotkey: &[u8]) -> io::Result<()> {
237
writer
238
.stdout
239
.queue(SetForegroundColor(Color::Yellow))?
240
.queue(SetAttribute(Attribute::Bold))?;
241
writer.write_ascii(hotkey)?;
242
writer.stdout.queue(ResetColor)?;
243
Ok(())
244
- };
+ }
245
246
let mut writer = MaxLenWriter::new(stdout, self.term_width as usize);
247
if self.message.is_empty() {
0 commit comments