Fix an annoying warning about camel case types

This commit is contained in:
Peter Ammon 2024-06-15 13:46:45 -07:00
parent 4d300b7f32
commit 0c20ccc72d
No known key found for this signature in database

View file

@ -318,7 +318,7 @@ pub fn commandline(parser: &Parser, streams: &mut IoStreams, args: &mut [&wstr])
return STATUS_INVALID_ARGS;
}
type rl = ReadlineCmd;
type RL = ReadlineCmd;
for arg in &w.argv[w.wopt_index..] {
let Some(cmd) = input_function_get_code(arg) else {
streams
@ -329,7 +329,7 @@ pub fn commandline(parser: &Parser, streams: &mut IoStreams, args: &mut [&wstr])
};
// Don't enqueue a repaint if we're currently in the middle of one,
// because that's an infinite loop.
if matches!(cmd, rl::RepaintMode | rl::ForceRepaint | rl::Repaint) {
if matches!(cmd, RL::RepaintMode | RL::ForceRepaint | RL::Repaint) {
if parser.libdata().is_repaint {
continue;
}