remove serde_json as it's useless
This commit is contained in:
parent
bc93c35999
commit
aeee6b97a3
@ -19,4 +19,3 @@ ron = "0.8.0"
|
||||
serde = { version = "1.0.163", features = ["derive"] }
|
||||
toml = "0.7.4"
|
||||
nalgebra = "0.32.2"
|
||||
serde_json = "1.0.125"
|
||||
|
@ -10,7 +10,7 @@ use redis::{
|
||||
use std::thread::sleep;
|
||||
use std::time::{Duration, Instant};
|
||||
|
||||
const SCALE: f32 = 500.0;
|
||||
const SCALE: f32 = 20.0;
|
||||
|
||||
fn do_something() -> redis::RedisResult<()> {
|
||||
let client = Client::open("redis://127.0.0.1/")?;
|
||||
|
@ -61,7 +61,7 @@ fn run_all() -> LJResult<()> {
|
||||
let s = std::str::from_utf8(&buff2[0..n]).unwrap();
|
||||
buff.push_str(&s);
|
||||
|
||||
if buff2[n - 1] == 0 {
|
||||
if n == 0 || buff2[n - 1] == 0 {
|
||||
let config = toml::from_str(&buff[0..buff.len() - 1])?;
|
||||
break Ok(config);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user