Skip to content

Commit

Permalink
Remove unnecessary imports
Browse files Browse the repository at this point in the history
  • Loading branch information
magicant committed Dec 6, 2021
1 parent beb9430 commit f79baa6
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion yash-env/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
use crate::io::Fd;
use crate::system::SharedSystem;
use async_trait::async_trait;
use std::convert::TryInto;
use std::num::NonZeroU64;
use std::rc::Rc;
use std::slice::from_mut;
Expand Down
1 change: 0 additions & 1 deletion yash-env/src/semantics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
//! Type definitions for command execution.
use nix::sys::signal::Signal;
use std::convert::TryFrom;
use std::ops::ControlFlow;
use std::os::raw::c_int;
use yash_syntax::source::Location;
Expand Down
1 change: 0 additions & 1 deletion yash-env/src/system/real.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ use nix::sys::stat::Mode;
use nix::unistd::access;
use nix::unistd::AccessFlags;
use std::convert::Infallible;
use std::convert::TryInto;
use std::ffi::CStr;
use std::ffi::CString;
use std::future::Future;
Expand Down
1 change: 0 additions & 1 deletion yash-env/src/system/virtual.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ use std::cell::RefCell;
use std::cell::RefMut;
use std::collections::BTreeMap;
use std::convert::Infallible;
use std::convert::TryInto;
use std::ffi::CStr;
use std::ffi::CString;
use std::ffi::OsStr;
Expand Down
1 change: 0 additions & 1 deletion yash-env/src/system/virtual/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ use nix::errno::Errno;
use nix::libc::off_t;
use nix::unistd::Whence;
use std::cell::RefCell;
use std::convert::TryFrom;
use std::fmt::Debug;
use std::rc::Rc;
use std::rc::Weak;
Expand Down
1 change: 0 additions & 1 deletion yash-syntax/src/parser/from_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ use super::Parser;
use super::Rec;
use crate::source::Source;
use crate::syntax::*;
use std::convert::TryInto;
use std::future::Future;
use std::iter::empty;
use std::str::FromStr;
Expand Down
1 change: 0 additions & 1 deletion yash-syntax/src/parser/lex/keyword.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

//! Types and functions for parsing reserved words.
use std::convert::TryFrom;
use std::fmt;

/// Token identifier for reserved words.
Expand Down
1 change: 0 additions & 1 deletion yash-syntax/src/parser/lex/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ use super::op::is_operator_char;
use crate::parser::core::Result;
use crate::syntax::MaybeLiteral;
use crate::syntax::Word;
use std::convert::TryFrom;

/// Tests whether the given character is a token delimiter.
///
Expand Down
1 change: 0 additions & 1 deletion yash-syntax/src/parser/redir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ use crate::syntax::Redir;
use crate::syntax::RedirBody;
use crate::syntax::RedirOp;
use crate::syntax::Word;
use std::convert::TryFrom;

impl Parser<'_, '_> {
/// Parses the operand of a redirection operator.
Expand Down
1 change: 0 additions & 1 deletion yash-syntax/src/parser/simple_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ use crate::syntax::Redir;
use crate::syntax::Scalar;
use crate::syntax::SimpleCommand;
use crate::syntax::Word;
use std::convert::TryFrom;

/// Simple command builder.
#[derive(Default)]
Expand Down
1 change: 0 additions & 1 deletion yash-syntax/src/source/pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ mod annotate_snippets_support {
use super::*;
use annotate_snippets::snippet;
use annotate_snippets::snippet::Snippet;
use std::convert::TryInto;

/// Converts `yash_syntax::source::pretty::AnnotationType` into
/// `annotate_snippets::snippet::AnnotationType`.
Expand Down
1 change: 0 additions & 1 deletion yash-syntax/src/syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
use crate::parser::lex::Operator;
use crate::source::Location;
use itertools::Itertools;
use std::convert::TryFrom;
use std::fmt;
use std::fmt::Write;
use std::os::unix::io::RawFd;
Expand Down

0 comments on commit f79baa6

Please sign in to comment.