mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-01 02:40:45 +08:00
Remove stale lint suppression
Feature fish-ffi-tests is no more so we don't need this warning.
This commit is contained in:
parent
d6c96a0a68
commit
36b7723a93
|
@ -104,5 +104,4 @@ pub mod wildcard;
|
||||||
pub mod wutil;
|
pub mod wutil;
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
#[allow(unused_imports)] // Easy way to suppress warnings while we have two testing modes.
|
|
||||||
mod tests;
|
mod tests;
|
||||||
|
|
|
@ -1,12 +1,8 @@
|
||||||
use crate::abbrs::{self, abbrs_get_set, abbrs_match, Abbreviation};
|
use crate::abbrs::{self, abbrs_get_set, abbrs_match, Abbreviation};
|
||||||
use crate::complete::CompleteFlags;
|
|
||||||
use crate::editable_line::{apply_edit, Edit};
|
use crate::editable_line::{apply_edit, Edit};
|
||||||
use crate::highlight::HighlightSpec;
|
use crate::highlight::HighlightSpec;
|
||||||
use crate::parser::Parser;
|
use crate::parser::Parser;
|
||||||
use crate::reader::{
|
use crate::reader::reader_expand_abbreviation_at_cursor;
|
||||||
combine_command_and_autosuggestion, completion_apply_to_command_line,
|
|
||||||
reader_expand_abbreviation_at_cursor,
|
|
||||||
};
|
|
||||||
use crate::tests::prelude::*;
|
use crate::tests::prelude::*;
|
||||||
use crate::wchar::prelude::*;
|
use crate::wchar::prelude::*;
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ use crate::abbrs::{self, with_abbrs_mut, Abbreviation};
|
||||||
use crate::complete::{
|
use crate::complete::{
|
||||||
complete, complete_add, complete_add_wrapper, complete_get_wrap_targets,
|
complete, complete_add, complete_add_wrapper, complete_get_wrap_targets,
|
||||||
complete_remove_wrapper, sort_and_prioritize, CompleteFlags, CompleteOptionType,
|
complete_remove_wrapper, sort_and_prioritize, CompleteFlags, CompleteOptionType,
|
||||||
CompletionList, CompletionMode, CompletionRequestOptions,
|
CompletionMode, CompletionRequestOptions,
|
||||||
};
|
};
|
||||||
use crate::env::{EnvMode, Environment};
|
use crate::env::{EnvMode, Environment};
|
||||||
use crate::io::IoChain;
|
use crate::io::IoChain;
|
||||||
|
@ -12,7 +12,6 @@ use crate::operation_context::{
|
||||||
use crate::parser::Parser;
|
use crate::parser::Parser;
|
||||||
use crate::reader::completion_apply_to_command_line;
|
use crate::reader::completion_apply_to_command_line;
|
||||||
use crate::tests::prelude::*;
|
use crate::tests::prelude::*;
|
||||||
use crate::tests::prelude::*;
|
|
||||||
use crate::wchar::prelude::*;
|
use crate::wchar::prelude::*;
|
||||||
use crate::wcstringutil::join_strings;
|
use crate::wcstringutil::join_strings;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
|
|
@ -4,7 +4,7 @@ use crate::tests::prelude::*;
|
||||||
use crate::wchar::prelude::*;
|
use crate::wchar::prelude::*;
|
||||||
use crate::wutil::wgetcwd;
|
use crate::wutil::wgetcwd;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::time::{Duration, SystemTime, UNIX_EPOCH};
|
use std::time::{SystemTime, UNIX_EPOCH};
|
||||||
use widestring_suffix::widestrs;
|
use widestring_suffix::widestrs;
|
||||||
|
|
||||||
/// An environment built around an std::map.
|
/// An environment built around an std::map.
|
||||||
|
|
|
@ -2,7 +2,6 @@ use crate::common::wcs2osstring;
|
||||||
use crate::common::ScopeGuard;
|
use crate::common::ScopeGuard;
|
||||||
use crate::env::{EnvVar, EnvVarFlags, VarTable};
|
use crate::env::{EnvVar, EnvVarFlags, VarTable};
|
||||||
use crate::env_universal_common::{CallbackDataList, EnvUniversal, UvarFormat};
|
use crate::env_universal_common::{CallbackDataList, EnvUniversal, UvarFormat};
|
||||||
use crate::flog::FLOG;
|
|
||||||
use crate::parser::Parser;
|
use crate::parser::Parser;
|
||||||
use crate::reader::{reader_current_data, reader_pop, reader_push, ReaderConfig};
|
use crate::reader::{reader_current_data, reader_pop, reader_push, ReaderConfig};
|
||||||
use crate::tests::prelude::*;
|
use crate::tests::prelude::*;
|
||||||
|
|
|
@ -8,7 +8,6 @@ use crate::operation_context::{no_cancel, EXPANSION_LIMIT_DEFAULT};
|
||||||
use crate::parse_constants::ParseErrorList;
|
use crate::parse_constants::ParseErrorList;
|
||||||
use crate::parser::Parser;
|
use crate::parser::Parser;
|
||||||
use crate::tests::prelude::*;
|
use crate::tests::prelude::*;
|
||||||
use crate::tests::prelude::*;
|
|
||||||
use crate::wildcard::ANY_STRING;
|
use crate::wildcard::ANY_STRING;
|
||||||
use crate::{
|
use crate::{
|
||||||
expand::{expand_string, ExpandFlags},
|
expand::{expand_string, ExpandFlags},
|
||||||
|
|
|
@ -6,10 +6,7 @@ use crate::tests::prelude::*;
|
||||||
use crate::wchar::prelude::*;
|
use crate::wchar::prelude::*;
|
||||||
use crate::{
|
use crate::{
|
||||||
env::EnvStack,
|
env::EnvStack,
|
||||||
highlight::{
|
highlight::{highlight_shell, is_potential_path, HighlightRole, HighlightSpec, PathFlags},
|
||||||
highlight_shell, is_potential_path, HighlightColorResolver, HighlightRole, HighlightSpec,
|
|
||||||
PathFlags,
|
|
||||||
},
|
|
||||||
operation_context::{OperationContext, EXPANSION_LIMIT_BACKGROUND, EXPANSION_LIMIT_DEFAULT},
|
operation_context::{OperationContext, EXPANSION_LIMIT_BACKGROUND, EXPANSION_LIMIT_DEFAULT},
|
||||||
};
|
};
|
||||||
use libc::PATH_MAX;
|
use libc::PATH_MAX;
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
use crate::common::{
|
use crate::common::{is_windows_subsystem_for_linux, str2wcstring, wcs2osstring};
|
||||||
cstr2wcstring, is_windows_subsystem_for_linux, str2wcstring, wcs2osstring, wcs2string,
|
use crate::env::{EnvMode, EnvStack};
|
||||||
};
|
|
||||||
use crate::env::{EnvDyn, EnvMode, EnvStack, Environment};
|
|
||||||
use crate::fds::{wopen_cloexec, AutoCloseFd};
|
use crate::fds::{wopen_cloexec, AutoCloseFd};
|
||||||
use crate::history::{self, History, HistoryItem, HistorySearch, PathList, SearchDirection};
|
use crate::history::{self, History, HistoryItem, HistorySearch, PathList, SearchDirection};
|
||||||
use crate::path::path_get_data;
|
use crate::path::path_get_data;
|
||||||
use crate::tests::prelude::*;
|
use crate::tests::prelude::*;
|
||||||
use crate::tests::prelude::*;
|
|
||||||
use crate::tests::string_escape::ESCAPE_TEST_CHAR;
|
use crate::tests::string_escape::ESCAPE_TEST_CHAR;
|
||||||
use crate::wchar::prelude::*;
|
use crate::wchar::prelude::*;
|
||||||
use crate::wcstringutil::{string_prefixes_string, string_prefixes_string_case_insensitive};
|
use crate::wcstringutil::{string_prefixes_string, string_prefixes_string_case_insensitive};
|
||||||
use libc::{O_RDONLY, STDERR_FILENO};
|
use libc::O_RDONLY;
|
||||||
use rand::random;
|
use rand::random;
|
||||||
use std::collections::VecDeque;
|
use std::collections::VecDeque;
|
||||||
use std::ffi::{CString, OsStr, OsString};
|
use std::ffi::CString;
|
||||||
use std::io::BufReader;
|
use std::io::BufReader;
|
||||||
use std::time::SystemTime;
|
use std::time::SystemTime;
|
||||||
use std::time::UNIX_EPOCH;
|
use std::time::UNIX_EPOCH;
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
use crate::wchar::prelude::*;
|
|
||||||
|
|
||||||
mod abbrs;
|
mod abbrs;
|
||||||
mod common;
|
mod common;
|
||||||
mod complete;
|
mod complete;
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
use crate::ast::{self, Ast, List, Node, Traversal};
|
use crate::ast::{self, Ast, List, Node, Traversal};
|
||||||
use crate::builtins::shared::{STATUS_CMD_OK, STATUS_UNMATCHED_WILDCARD};
|
|
||||||
use crate::common::ScopeGuard;
|
use crate::common::ScopeGuard;
|
||||||
use crate::expand::ExpandFlags;
|
use crate::expand::ExpandFlags;
|
||||||
use crate::io::{IoBufferfill, IoChain};
|
use crate::io::{IoBufferfill, IoChain};
|
||||||
|
@ -13,7 +12,6 @@ use crate::reader::{
|
||||||
};
|
};
|
||||||
use crate::signal::{signal_clear_cancel, signal_reset_handlers, signal_set_handlers};
|
use crate::signal::{signal_clear_cancel, signal_reset_handlers, signal_set_handlers};
|
||||||
use crate::tests::prelude::*;
|
use crate::tests::prelude::*;
|
||||||
use crate::tests::prelude::*;
|
|
||||||
use crate::threads::{iothread_drain_all, iothread_perform};
|
use crate::threads::{iothread_drain_all, iothread_perform};
|
||||||
use crate::wchar::prelude::*;
|
use crate::wchar::prelude::*;
|
||||||
use crate::wcstringutil::join_strings;
|
use crate::wcstringutil::join_strings;
|
||||||
|
|
|
@ -5,7 +5,6 @@ pub mod fileid;
|
||||||
pub mod gettext;
|
pub mod gettext;
|
||||||
pub mod printf;
|
pub mod printf;
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
#[allow(unused_imports)] // Easy way to suppress warnings while we have two testing modes.
|
|
||||||
mod tests;
|
mod tests;
|
||||||
pub mod wcstod;
|
pub mod wcstod;
|
||||||
pub mod wcstoi;
|
pub mod wcstoi;
|
||||||
|
|
|
@ -4,7 +4,6 @@ use rand::random;
|
||||||
use std::{ffi::CString, ptr};
|
use std::{ffi::CString, ptr};
|
||||||
|
|
||||||
use crate::fallback::fish_mkstemp_cloexec;
|
use crate::fallback::fish_mkstemp_cloexec;
|
||||||
use crate::tests::prelude::*;
|
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user