mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 00:41:15 -03:00
wgetopt: remove dependencies on main lib
Only items from `fish_widestring`'s prelude are used, so depend on that directly, to prepare for extraction. Part of #12317
This commit is contained in:
committed by
Johannes Altmanninger
parent
50a97856dc
commit
154c095e66
@@ -24,7 +24,7 @@
|
||||
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
|
||||
Cambridge, MA 02139, USA. */
|
||||
|
||||
use crate::prelude::*;
|
||||
use fish_widestring::prelude::*;
|
||||
|
||||
/// Special char used with [`Ordering::ReturnInOrder`].
|
||||
pub const NON_OPTION_CHAR: char = '\x01';
|
||||
@@ -567,8 +567,8 @@ fn wgetopt_inner(&mut self, longopt_index: &mut usize) -> Option<char> {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::{ArgType, WGetopter, wopt};
|
||||
use crate::prelude::*;
|
||||
use fish_wcstringutil::join_strings;
|
||||
use fish_widestring::prelude::*;
|
||||
|
||||
#[test]
|
||||
fn test_exchange() {
|
||||
|
||||
Reference in New Issue
Block a user