Remove stale lint suppression

Feature fish-ffi-tests is no more so we don't need this warning.
This commit is contained in:
Johannes Altmanninger 2024-01-12 13:50:32 +01:00
parent d6c96a0a68
commit 36b7723a93
12 changed files with 8 additions and 28 deletions

View File

@ -104,5 +104,4 @@ pub mod wildcard;
pub mod wutil;
#[cfg(test)]
#[allow(unused_imports)] // Easy way to suppress warnings while we have two testing modes.
mod tests;

View File

@ -1,12 +1,8 @@
use crate::abbrs::{self, abbrs_get_set, abbrs_match, Abbreviation};
use crate::complete::CompleteFlags;
use crate::editable_line::{apply_edit, Edit};
use crate::highlight::HighlightSpec;
use crate::parser::Parser;
use crate::reader::{
combine_command_and_autosuggestion, completion_apply_to_command_line,
reader_expand_abbreviation_at_cursor,
};
use crate::reader::reader_expand_abbreviation_at_cursor;
use crate::tests::prelude::*;
use crate::wchar::prelude::*;

View File

@ -2,7 +2,7 @@ use crate::abbrs::{self, with_abbrs_mut, Abbreviation};
use crate::complete::{
complete, complete_add, complete_add_wrapper, complete_get_wrap_targets,
complete_remove_wrapper, sort_and_prioritize, CompleteFlags, CompleteOptionType,
CompletionList, CompletionMode, CompletionRequestOptions,
CompletionMode, CompletionRequestOptions,
};
use crate::env::{EnvMode, Environment};
use crate::io::IoChain;
@ -12,7 +12,6 @@ use crate::operation_context::{
use crate::parser::Parser;
use crate::reader::completion_apply_to_command_line;
use crate::tests::prelude::*;
use crate::tests::prelude::*;
use crate::wchar::prelude::*;
use crate::wcstringutil::join_strings;
use std::collections::HashMap;

View File

@ -4,7 +4,7 @@ use crate::tests::prelude::*;
use crate::wchar::prelude::*;
use crate::wutil::wgetcwd;
use std::collections::HashMap;
use std::time::{Duration, SystemTime, UNIX_EPOCH};
use std::time::{SystemTime, UNIX_EPOCH};
use widestring_suffix::widestrs;
/// An environment built around an std::map.

View File

@ -2,7 +2,6 @@ use crate::common::wcs2osstring;
use crate::common::ScopeGuard;
use crate::env::{EnvVar, EnvVarFlags, VarTable};
use crate::env_universal_common::{CallbackDataList, EnvUniversal, UvarFormat};
use crate::flog::FLOG;
use crate::parser::Parser;
use crate::reader::{reader_current_data, reader_pop, reader_push, ReaderConfig};
use crate::tests::prelude::*;

View File

@ -8,7 +8,6 @@ use crate::operation_context::{no_cancel, EXPANSION_LIMIT_DEFAULT};
use crate::parse_constants::ParseErrorList;
use crate::parser::Parser;
use crate::tests::prelude::*;
use crate::tests::prelude::*;
use crate::wildcard::ANY_STRING;
use crate::{
expand::{expand_string, ExpandFlags},

View File

@ -6,10 +6,7 @@ use crate::tests::prelude::*;
use crate::wchar::prelude::*;
use crate::{
env::EnvStack,
highlight::{
highlight_shell, is_potential_path, HighlightColorResolver, HighlightRole, HighlightSpec,
PathFlags,
},
highlight::{highlight_shell, is_potential_path, HighlightRole, HighlightSpec, PathFlags},
operation_context::{OperationContext, EXPANSION_LIMIT_BACKGROUND, EXPANSION_LIMIT_DEFAULT},
};
use libc::PATH_MAX;

View File

@ -1,19 +1,16 @@
use crate::common::{
cstr2wcstring, is_windows_subsystem_for_linux, str2wcstring, wcs2osstring, wcs2string,
};
use crate::env::{EnvDyn, EnvMode, EnvStack, Environment};
use crate::common::{is_windows_subsystem_for_linux, str2wcstring, wcs2osstring};
use crate::env::{EnvMode, EnvStack};
use crate::fds::{wopen_cloexec, AutoCloseFd};
use crate::history::{self, History, HistoryItem, HistorySearch, PathList, SearchDirection};
use crate::path::path_get_data;
use crate::tests::prelude::*;
use crate::tests::prelude::*;
use crate::tests::string_escape::ESCAPE_TEST_CHAR;
use crate::wchar::prelude::*;
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 std::collections::VecDeque;
use std::ffi::{CString, OsStr, OsString};
use std::ffi::CString;
use std::io::BufReader;
use std::time::SystemTime;
use std::time::UNIX_EPOCH;

View File

@ -1,5 +1,3 @@
use crate::wchar::prelude::*;
mod abbrs;
mod common;
mod complete;

View File

@ -1,5 +1,4 @@
use crate::ast::{self, Ast, List, Node, Traversal};
use crate::builtins::shared::{STATUS_CMD_OK, STATUS_UNMATCHED_WILDCARD};
use crate::common::ScopeGuard;
use crate::expand::ExpandFlags;
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::tests::prelude::*;
use crate::tests::prelude::*;
use crate::threads::{iothread_drain_all, iothread_perform};
use crate::wchar::prelude::*;
use crate::wcstringutil::join_strings;

View File

@ -5,7 +5,6 @@ pub mod fileid;
pub mod gettext;
pub mod printf;
#[cfg(test)]
#[allow(unused_imports)] // Easy way to suppress warnings while we have two testing modes.
mod tests;
pub mod wcstod;
pub mod wcstoi;

View File

@ -4,7 +4,6 @@ use rand::random;
use std::{ffi::CString, ptr};
use crate::fallback::fish_mkstemp_cloexec;
use crate::tests::prelude::*;
use super::*;