use crate::api::router::*;
use crate::backup::chunk_store::*;
use serde_json::{json, Value};
-use std::path::{Path, PathBuf};
+use std::path::PathBuf;
use crate::config::datastore;
ObjectSchema::new("Directory index."))
}
-fn get_datastore_list(param: Value, _info: &ApiMethod) -> Result<Value, Error> {
+fn get_datastore_list(_param: Value, _info: &ApiMethod) -> Result<Value, Error> {
let config = datastore::config()?;
extern crate apitest;
-use std::collections::HashMap;
-
-use apitest::api3;
+//use apitest::api3;
use apitest::cli::command::*;
fn datastore_commands() -> CommandLineInterface {
use crate::api::schema::*;
use crate::api::router::*;
-use crate::api::config::*;
+//use crate::api::config::*;
use crate::getopts;
pub fn print_cli_usage() {
}
}
- for (name, (optional, schema)) in &cli_cmd.info.parameters.properties {
+ for (name, (_optional, _schema)) in &cli_cmd.info.parameters.properties {
if done.contains(*name) { continue; }
let option = String::from("--") + name;
if option.starts_with(&prefix) {
Ok(val) => {
match usize::from_str_radix(&val, 10) {
Ok(i) => i,
- Err(e) => return,
+ Err(_) => return,
}
}
- Err(e) => return,
+ Err(_) => return,
};
let cmdline = match std::env::var("COMP_LINE") {
Ok(val) => val[0..comp_point].to_owned(),
- Err(e) => return,
+ Err(_) => return,
};