remove useless loop
This commit is contained in:
@@ -72,7 +72,6 @@ fn main_inner() -> Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn initialize(io: &mut Io) -> Result<()> {
|
fn initialize(io: &mut Io) -> Result<()> {
|
||||||
loop {
|
|
||||||
match io.recv()? {
|
match io.recv()? {
|
||||||
RawMsg::Notification(n) =>
|
RawMsg::Notification(n) =>
|
||||||
bail!("expected initialize request, got {:?}", n),
|
bail!("expected initialize request, got {:?}", n),
|
||||||
@@ -98,8 +97,6 @@ fn initialize(io: &mut Io) -> Result<()> {
|
|||||||
}
|
}
|
||||||
_ => bail!("expected initialized notification"),
|
_ => bail!("expected initialized notification"),
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
initialized(io)
|
initialized(io)
|
||||||
|
|||||||
Reference in New Issue
Block a user