mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
remove useless loop
This commit is contained in:
parent
b518fd0ef9
commit
535bd7ccf7
@ -72,7 +72,6 @@ fn main_inner() -> Result<()> {
|
||||
}
|
||||
|
||||
fn initialize(io: &mut Io) -> Result<()> {
|
||||
loop {
|
||||
match io.recv()? {
|
||||
RawMsg::Notification(n) =>
|
||||
bail!("expected initialize request, got {:?}", n),
|
||||
@ -98,8 +97,6 @@ fn initialize(io: &mut Io) -> Result<()> {
|
||||
}
|
||||
_ => bail!("expected initialized notification"),
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
initialized(io)
|
||||
|
Loading…
Reference in New Issue
Block a user