Make sync requests not crash / remove associated leak

This commit is contained in:
Manish Goregaokar 2014-06-08 19:01:37 +05:30
parent e8de5f2f55
commit 30827bab4d

View file

@ -95,7 +95,7 @@ enum SyncOrAsync<'a, 'b> {
impl<'a,'b> SyncOrAsync<'a,'b> {
fn is_async(&self) -> bool {
match *self {
Sync(_) => true,
Async(_,_) => true,
_ => false
}
}