File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
crates/ide-assists/src/handlers Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2433,29 +2433,31 @@ pub enum State {
2433
2433
Inactive,
2434
2434
}
2435
2435
2436
+ use State::*;
2437
+
2436
2438
pub trait Checker {
2437
2439
fn check(&self) -> State;
2438
2440
2439
2441
fn is_active(&self) -> bool {
2440
2442
match self.check() {
2441
- State:: Active => true,
2442
- State:: Inactive => false,
2443
+ Active => true,
2444
+ Inactive => false,
2443
2445
}
2444
2446
}
2445
2447
}
2446
2448
//- /main.rs crate:a deps:b
2447
2449
struct MyChecker;
2448
2450
2449
2451
impl b::Checker for MyChecker {
2450
- fn check(&self) -> lib ::State {
2452
+ fn check(&self) -> b ::State {
2451
2453
todo!();
2452
2454
}$0
2453
2455
}"# ,
2454
2456
r#"
2455
2457
struct MyChecker;
2456
2458
2457
2459
impl b::Checker for MyChecker {
2458
- fn check(&self) -> lib ::State {
2460
+ fn check(&self) -> b ::State {
2459
2461
todo!();
2460
2462
}
2461
2463
You can’t perform that action at this time.
0 commit comments