From a28f9545e18918b68b5c07e0231f2af219a15bb7 Mon Sep 17 00:00:00 2001 From: Luciano Bestia Date: Sat, 13 Feb 2021 17:50:52 +0100 Subject: removed logging stuff --- crates/ide/Cargo.toml | 3 +-- crates/ide/src/folding_ranges.rs | 7 ------- 2 files changed, 1 insertion(+), 9 deletions(-) (limited to 'crates/ide') diff --git a/crates/ide/Cargo.toml b/crates/ide/Cargo.toml index 15a48c0f3..8c49800d5 100644 --- a/crates/ide/Cargo.toml +++ b/crates/ide/Cargo.toml @@ -36,5 +36,4 @@ completion = { path = "../completion", version = "0.0.0" } hir = { path = "../hir", version = "0.0.0" } [dev-dependencies] -expect-test = "1.1" -env_logger = { version = "0.8.1", default-features = false } \ No newline at end of file +expect-test = "1.1" \ No newline at end of file diff --git a/crates/ide/src/folding_ranges.rs b/crates/ide/src/folding_ranges.rs index 531f3c951..4b1b24562 100644 --- a/crates/ide/src/folding_ranges.rs +++ b/crates/ide/src/folding_ranges.rs @@ -447,9 +447,6 @@ fn foo( #[test] fn fold_region() { - log_init_for_test_debug(); - // only error level log is printed on the terminal - log::error!("test fold_region"); check( r#" // 1. some normal comment @@ -460,8 +457,4 @@ calling_function(x,y); "#, ) } - - fn log_init_for_test_debug() { - let _ = env_logger::builder().is_test(true).try_init(); - } } -- cgit v1.2.3