Auto merge of #14658 - servo:bluetooth-net, r=jdm

Separate the async bluetooth handling from networking code.

They're not at all related, besides both being asynchronous. This change adds
a little extra code in response_async(), but makes this code more readable
and reduces the unnecessary indirection.

This change also makes the build system slightly more parallel, by dropping
the dependency on bluetooth_traits from net_traits.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14658)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-12-21 06:47:33 -08:00 committed by GitHub
commit fb457723e8
6 changed files with 25 additions and 34 deletions

1
Cargo.lock generated
View file

@ -1729,7 +1729,6 @@ dependencies = [
name = "net_traits"
version = "0.0.1"
dependencies = [
"bluetooth_traits 0.0.1",
"cookie 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)",
"heapsize 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
"heapsize_derive 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",