mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01: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/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
use actor::{Actor, ActorMessageStatus, ActorRegistry};
|
use actor::{Actor, ActorMessageStatus, ActorRegistry};
|
||||||
use serde_json::{Map, Value};
|
|
||||||
use std::net::TcpStream;
|
|
||||||
use protocol::{ActorDescription, Method};
|
use protocol::{ActorDescription, Method};
|
||||||
use protocol::JsonPacketStream;
|
use protocol::JsonPacketStream;
|
||||||
|
use serde_json::{Map, Value};
|
||||||
|
use std::net::TcpStream;
|
||||||
|
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize)]
|
||||||
struct GetDescriptionReply {
|
struct GetDescriptionReply {
|
||||||
|
@ -35,10 +35,8 @@ impl Actor for DeviceActor {
|
||||||
_msg: &Map<String, Value>,
|
_msg: &Map<String, Value>,
|
||||||
stream: &mut TcpStream,
|
stream: &mut TcpStream,
|
||||||
) -> Result<ActorMessageStatus, ()> {
|
) -> Result<ActorMessageStatus, ()> {
|
||||||
|
|
||||||
Ok(match msg_type {
|
Ok(match msg_type {
|
||||||
"getDescription" => {
|
"getDescription" => {
|
||||||
|
|
||||||
let msg = GetDescriptionReply {
|
let msg = GetDescriptionReply {
|
||||||
from: self.name(),
|
from: self.name(),
|
||||||
value: SystemInfo {
|
value: SystemInfo {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue