Browse Source

Remove macro_use for log crate.

wip
Titouan Rigoudy 4 years ago
parent
commit
bb73e71da2
6 changed files with 6 additions and 6 deletions
  1. +1
    -0
      client/src/client.rs
  2. +1
    -0
      client/src/control/ws.rs
  3. +1
    -1
      client/src/dispatcher.rs
  4. +1
    -0
      client/src/handlers/room_join_request_handler.rs
  5. +1
    -5
      client/src/main.rs
  6. +1
    -0
      client/src/room.rs

+ 1
- 0
client/src/client.rs View File

@ -1,6 +1,7 @@
use std::net;
use crossbeam_channel;
use log::{error, info, warn};
use slab;
use solstice_proto;
use solstice_proto::peer;


+ 1
- 0
client/src/control/ws.rs View File

@ -3,6 +3,7 @@ use std::net::SocketAddr;
use anyhow::Context;
use futures::stream::{SplitSink, SplitStream};
use futures::{SinkExt, StreamExt};
use log::{debug, error, info, warn};
use tokio::net::{TcpListener, TcpStream};
use tokio::sync::mpsc;
use tokio_tungstenite::tungstenite::{


+ 1
- 1
client/src/dispatcher.rs View File

@ -2,7 +2,7 @@
use std::fmt::Debug;
use log::warn;
use log::{error, warn};
use solstice_proto::server::ServerResponse;
use crate::context::Context;


+ 1
- 0
client/src/handlers/room_join_request_handler.rs View File

@ -1,4 +1,5 @@
use anyhow::Context as AnyhowContext;
use log::error;
use solstice_proto::server::RoomJoinRequest;
use solstice_proto::ServerRequest;


+ 1
- 5
client/src/main.rs View File

@ -1,12 +1,8 @@
// Still no 2018 way of using the log crate without `use log::*` everywhere.
#[macro_use]
extern crate log;
use anyhow::Context;
use clap::{App, Arg};
use crossbeam_channel;
use env_logger;
use log::info;
use log::{error, info};
use tokio::net::TcpStream;
use tokio::sync::mpsc;


+ 1
- 0
client/src/room.rs View File

@ -2,6 +2,7 @@ use std::collections::{HashMap, HashSet};
use std::mem;
use std::time::SystemTime;
use log::{error, info, warn};
use serde::{Deserialize, Deserializer, Serialize, Serializer};
use solstice_proto::{server, User};
use thiserror::Error;


Loading…
Cancel
Save