Fix build errors in some feature configurations

This commit is contained in:
timvisee 2018-11-20 13:27:05 +01:00
parent 7ee2391cbc
commit a58b15af7b
No known key found for this signature in database
GPG key ID: 109CBA0BF74036C2
3 changed files with 2 additions and 3 deletions

View file

@ -3,7 +3,6 @@ use ffsend_api::action::exists::{Error as ExistsError, Exists as ApiExists};
use ffsend_api::file::remote_file::{FileParseError, RemoteFile};
use client::create_client;
#[cfg(feature = "history")]
use cmd::matcher::main::MainMatcher;
use cmd::matcher::{exists::ExistsMatcher, Matcher};
use error::ActionError;
@ -26,7 +25,6 @@ impl<'a> Exists<'a> {
pub fn invoke(&self) -> Result<(), ActionError> {
// Create the command matchers
let matcher_exists = ExistsMatcher::with(self.cmd_matches).unwrap();
#[cfg(feature = "history")]
let matcher_main = MainMatcher::with(self.cmd_matches).unwrap();
// Get the share URL

View file

@ -21,7 +21,9 @@ use util::app_history_file_path_string;
lazy_static! {
/// The default history file
static ref DEFAULT_HISTORY_FILE: String = app_history_file_path_string();
}
lazy_static! {
/// The default client timeout in seconds as a string
static ref DEFAULT_TIMEOUT: String = format!("{}", CLIENT_TIMEOUT);

View file

@ -7,7 +7,6 @@ extern crate derive_builder;
#[macro_use]
extern crate failure;
extern crate ffsend_api;
#[cfg(feature = "history")]
#[macro_use]
extern crate lazy_static;
extern crate openssl_probe;