mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-22 12:44:57 +08:00
Suppress an annoying warning about non-camel-case types
This commit is contained in:
parent
376bdb16c7
commit
5cc9e0187e
|
@ -2145,6 +2145,7 @@ impl ReaderData {
|
|||
|
||||
impl ReaderData {
|
||||
fn handle_readline_command(&mut self, c: ReadlineCmd) {
|
||||
#[allow(non_camel_case_types)]
|
||||
type rl = ReadlineCmd;
|
||||
match c {
|
||||
rl::BeginningOfLine => {
|
||||
|
@ -4638,6 +4639,7 @@ impl ReaderData {
|
|||
|
||||
/// Indicates if the given command char ends paging.
|
||||
fn command_ends_paging(c: ReadlineCmd, focused_on_search_field: bool) -> bool {
|
||||
#[allow(non_camel_case_types)]
|
||||
type rl = ReadlineCmd;
|
||||
match c {
|
||||
rl::HistoryPrefixSearchBackward
|
||||
|
@ -4720,6 +4722,7 @@ fn command_ends_paging(c: ReadlineCmd, focused_on_search_field: bool) -> bool {
|
|||
|
||||
/// Indicates if the given command ends the history search.
|
||||
fn command_ends_history_search(c: ReadlineCmd) -> bool {
|
||||
#[allow(non_camel_case_types)]
|
||||
type rl = ReadlineCmd;
|
||||
!matches!(
|
||||
c,
|
||||
|
|
Loading…
Reference in New Issue
Block a user