mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
fix lint issues
This commit is contained in:
parent
5c8492d760
commit
61d31a5494
1 changed files with 2 additions and 4 deletions
|
@ -3,10 +3,10 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use actor::{Actor, ActorMessageStatus, ActorRegistry};
|
||||
use serde_json::{Map, Value};
|
||||
use std::net::TcpStream;
|
||||
use protocol::{ActorDescription, Method};
|
||||
use protocol::JsonPacketStream;
|
||||
use serde_json::{Map, Value};
|
||||
use std::net::TcpStream;
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct GetDescriptionReply {
|
||||
|
@ -35,10 +35,8 @@ impl Actor for DeviceActor {
|
|||
_msg: &Map<String, Value>,
|
||||
stream: &mut TcpStream,
|
||||
) -> Result<ActorMessageStatus, ()> {
|
||||
|
||||
Ok(match msg_type {
|
||||
"getDescription" => {
|
||||
|
||||
let msg = GetDescriptionReply {
|
||||
from: self.name(),
|
||||
value: SystemInfo {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue