Skip to content
Myr

Clean up include order

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by David Peter · parent f9372b5 · Browse files · 5 files+15 added−18 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+15 added−18 removed

  • tests:+7 added−11 removed
  • other:+8 added−7 removed

5 files+15 added−18 removed

modified:src/main.rs+1 added-3 removed
1#[macro_use]2mod error;31mod app;2mod error;3mod exec;4mod exit_codes;5mod filesystem;6mod filetypes;
312 unmodified lines
modified:src/options.rs+5 added-3 removed
1use std::{path::PathBuf, sync::Arc, time::Duration};23use lscolors::LsColors;4use regex::bytes::RegexSet;56use crate::exec::CommandTemplate;7use crate::filetypes::FileTypes;8use crate::filter::{SizeFilter, TimeFilter};4use lscolors::LsColors;5use regex::bytes::RegexSet;6use std::{path::PathBuf, sync::Arc, time::Duration};910/// Configuration options for *fd*.11pub struct Options {12 /// Whether the search is case-sensitive or case-insensitive.
75 unmodified lines
modified:tests/testenv/mod.rs+3 added-7 removed
1use std;1use std::env;2use std::fs;4use std::io;5use std::io::Write;6use std::path::{Path, PathBuf};7use std::process;83use std::io::{self, Write};4#[cfg(unix)]5use std::os::unix;116#[cfg(windows)]7use std::os::windows;8use std::path::{Path, PathBuf};9use std::process;1011use tempdir::TempDir;1213/// Environment for the integration tests.
249 unmodified lines
modified:tests/tests.rs+4 added-4 removed
1//! Integration tests for the CLI interface of fd.21mod testenv;25use crate::testenv::TestEnv;6use regex::escape;3use std::fs;4use std::io::Write;5use std::path::Path;6use std::time::{Duration, SystemTime};78use regex::escape;910use crate::testenv::TestEnv;1112static DEFAULT_DIRS: &'static [&'static str] = &["one/two/three", "one/two/three/directory_foo"];1314static DEFAULT_FILES: &'static [&'static str] = &[15 "a.foo",
1451 unmodified lines
modified:build.rs+2 added-1 removed
1use clap::Shell;1use std::fs;2use std::io::{self, Write};3use std::process::exit;45use clap::Shell;67include!("src/app.rs");89fn main() {10 match version_check::is_min_version("1.36") {
21 unmodified lines