From d467aa78c228d7447187486167feeb6fa3faaf99 Mon Sep 17 00:00:00 2001 From: Boshen Date: Wed, 3 Apr 2024 16:57:19 +0800 Subject: [PATCH] Remove an unused dependency (#10747) ## Summary Continuation of #10475, I improved [`cargo shear`](https://github.com/Boshen/cargo-shear) even more. We can put this in CI once I test it a bit more, given that [ignoring false positives](https://github.com/Boshen/cargo-shear?tab=readme-ov-file#ignore-false-positives) has been implemented. ## Test Plan `cargo check --all-features --all-targets` --- Cargo.lock | 1 - crates/ruff_python_parser/Cargo.toml | 1 - 2 files changed, 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 51e0137c31..d3a0680b71 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2337,7 +2337,6 @@ name = "ruff_python_parser" version = "0.0.0" dependencies = [ "anyhow", - "bitflags 2.5.0", "bstr", "insta", "is-macro", diff --git a/crates/ruff_python_parser/Cargo.toml b/crates/ruff_python_parser/Cargo.toml index 2ccf94a8b1..425537b75e 100644 --- a/crates/ruff_python_parser/Cargo.toml +++ b/crates/ruff_python_parser/Cargo.toml @@ -18,7 +18,6 @@ ruff_python_ast = { path = "../ruff_python_ast" } ruff_text_size = { path = "../ruff_text_size" } anyhow = { workspace = true } -bitflags = { workspace = true } bstr = { workspace = true } is-macro = { workspace = true } itertools = { workspace = true }