aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock1
-rw-r--r--crates/ide/Cargo.toml3
-rw-r--r--crates/ide/src/folding_ranges.rs7
3 files changed, 1 insertions, 10 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 30cef4cf8..d6af5e563 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -634,7 +634,6 @@ dependencies = [
634 "cfg", 634 "cfg",
635 "completion", 635 "completion",
636 "either", 636 "either",
637 "env_logger",
638 "expect-test", 637 "expect-test",
639 "hir", 638 "hir",
640 "ide_db", 639 "ide_db",
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" }
36hir = { path = "../hir", version = "0.0.0" } 36hir = { path = "../hir", version = "0.0.0" }
37 37
38[dev-dependencies] 38[dev-dependencies]
39expect-test = "1.1" 39expect-test = "1.1" \ No newline at end of file
40env_logger = { version = "0.8.1", default-features = false } \ 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<fold arglist>(
447 447
448 #[test] 448 #[test]
449 fn fold_region() { 449 fn fold_region() {
450 log_init_for_test_debug();
451 // only error level log is printed on the terminal
452 log::error!("test fold_region");
453 check( 450 check(
454 r#" 451 r#"
455// 1. some normal comment 452// 1. some normal comment
@@ -460,8 +457,4 @@ calling_function(x,y);
460"#, 457"#,
461 ) 458 )
462 } 459 }
463
464 fn log_init_for_test_debug() {
465 let _ = env_logger::builder().is_test(true).try_init();
466 }
467} 460}