diff options
| author | Ryo Yoshida <low.ryoshida@gmail.com> | 2023-02-25 21:50:27 +0900 |
|---|---|---|
| committer | Ryo Yoshida <low.ryoshida@gmail.com> | 2023-02-25 21:55:11 +0900 |
| commit | cf0c8fe0003be7bbb4f57dd553f0eb85ec845099 (patch) | |
| tree | 4eff479fcda6b951830857cdcc23d5f631df1853 /crates/syntax | |
| parent | f5401f620699b26ed9d47a1d2e838143a18dbe3b (diff) | |
| download | rust-cf0c8fe0003be7bbb4f57dd553f0eb85ec845099.tar.gz rust-cf0c8fe0003be7bbb4f57dd553f0eb85ec845099.zip | |
minor: import `Either` from `either`
Diffstat (limited to 'crates/syntax')
| -rw-r--r-- | crates/syntax/Cargo.toml | 1 | ||||
| -rw-r--r-- | crates/syntax/src/ast.rs | 2 | ||||
| -rw-r--r-- | crates/syntax/src/ast/traits.rs | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/crates/syntax/Cargo.toml b/crates/syntax/Cargo.toml index 8fc493a23f5..305cf2d394b 100644 --- a/crates/syntax/Cargo.toml +++ b/crates/syntax/Cargo.toml @@ -14,6 +14,7 @@ doctest = false [dependencies] cov-mark = "2.0.0-pre.1" +either = "1.7.0" itertools = "0.10.5" rowan = "0.15.10" rustc_lexer = { version = "727.0.0", package = "rustc-ap-rustc_lexer" } diff --git a/crates/syntax/src/ast.rs b/crates/syntax/src/ast.rs index 385a4e0a3ce..679536fe27a 100644 --- a/crates/syntax/src/ast.rs +++ b/crates/syntax/src/ast.rs @@ -13,7 +13,7 @@ pub mod prec; use std::marker::PhantomData; -use itertools::Either; +use either::Either; use crate::{ syntax_node::{SyntaxNode, SyntaxNodeChildren, SyntaxToken}, diff --git a/crates/syntax/src/ast/traits.rs b/crates/syntax/src/ast/traits.rs index aa2b7ed5c8b..bc7b5582318 100644 --- a/crates/syntax/src/ast/traits.rs +++ b/crates/syntax/src/ast/traits.rs @@ -1,7 +1,7 @@ //! Various traits that are implemented by ast nodes. //! //! The implementations are usually trivial, and live in generated.rs -use itertools::Either; +use either::Either; use crate::{ ast::{self, support, AstChildren, AstNode, AstToken}, |
