aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/ide/Cargo.toml3
-rw-r--r--crates/ide/src/folding_ranges.rs7
2 files changed, 1 insertions, 9 deletions
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}