import fs, io, path modules to read and write volume persistence file

This commit is contained in:
Brice Delli Paoli 2018-05-10 12:04:13 -04:00
parent fa66dd312b
commit f2be0533f3
2 changed files with 5 additions and 2 deletions

View file

@ -19,6 +19,8 @@ use playback::player::Player;
use rand; use rand;
use rand::Rng; use rand::Rng;
use std; use std;
use std::fs::File;
use std::io::Write;
use std::time::{SystemTime, UNIX_EPOCH}; use std::time::{SystemTime, UNIX_EPOCH};
pub struct SpircTask { pub struct SpircTask {

View file

@ -17,9 +17,10 @@ use env_logger::LogBuilder;
use futures::sync::mpsc::UnboundedReceiver; use futures::sync::mpsc::UnboundedReceiver;
use futures::{Async, Future, Poll, Stream}; use futures::{Async, Future, Poll, Stream};
use std::env; use std::env;
use std::io::{self, stderr, Write}; use std::fs::File;
use std::io::{self, stderr, Read, Write};
use std::mem; use std::mem;
use std::path::PathBuf; use std::path::{Path, PathBuf};
use std::process::exit; use std::process::exit;
use std::str::FromStr; use std::str::FromStr;
use tokio_core::reactor::{Core, Handle}; use tokio_core::reactor::{Core, Handle};