diff --git a/Cargo.lock b/Cargo.lock index f6c6f3ed1d103..0654eab5f9960 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1789,7 +1789,6 @@ dependencies = [ "rustc-hash", "smol_str", "tempfile", - "textwrap", "tracing", "tracing-subscriber", "tracing-tree", @@ -2690,12 +2689,6 @@ version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" -[[package]] -name = "smawk" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7c388c1b5e93756d0c740965c41e8822f866621d41acbdf6336a6a168f8840c" - [[package]] name = "smol_str" version = "0.2.2" @@ -2845,17 +2838,6 @@ dependencies = [ "test-case-core", ] -[[package]] -name = "textwrap" -version = "0.16.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23d434d3f8967a09480fb04132ebe0a3e088c173e6d0ee7897abbdf4eab0f8b9" -dependencies = [ - "smawk", - "unicode-linebreak", - "unicode-width", -] - [[package]] name = "thiserror" version = "1.0.61" @@ -3111,12 +3093,6 @@ version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" -[[package]] -name = "unicode-linebreak" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f" - [[package]] name = "unicode-normalization" version = "0.1.23" diff --git a/crates/red_knot/src/types/infer.rs b/crates/red_knot/src/types/infer.rs index 718c0b92bab1e..b5697ef14c246 100644 --- a/crates/red_knot/src/types/infer.rs +++ b/crates/red_knot/src/types/infer.rs @@ -213,7 +213,6 @@ fn infer_expr_type(db: &dyn SemanticDb, file_id: FileId, expr: &ast::Expr) -> Qu #[cfg(test)] mod tests { - use textwrap::dedent; use crate::db::tests::TestDb; use crate::db::{HasJar, SemanticJar}; @@ -251,7 +250,7 @@ mod tests { fn write_to_path(case: &TestCase, relpath: &str, contents: &str) -> anyhow::Result<()> { let path = case.src.path().join(relpath); - std::fs::write(path, dedent(contents))?; + std::fs::write(path, contents)?; Ok(()) }