mononoke: Convert API Server to rust 2018

Summary:
Move to 2018 edition rust.

koalatyoflife

Reviewed By: fanzeyi

Differential Revision: D16341283

fbshipit-source-id: 44da679895a130e9e42793e8d7d26a7d5665138f
This commit is contained in:
Harvey Hunt 2019-07-17 11:35:44 -07:00 committed by Facebook Github Bot
parent acd6f0361e
commit e0b78cc3a6
2 changed files with 1 additions and 12 deletions

View File

@ -4,11 +4,6 @@
// This software may be used and distributed according to the terms of the
// GNU General Public License version 2 or any later version.
extern crate apiserver_thrift;
extern crate failure_ext;
extern crate futures_ext;
extern crate srclient;
use std::sync::Arc;
use futures_ext::BoxFuture;

View File

@ -4,19 +4,13 @@
// This software may be used and distributed according to the terms of the
// GNU General Public License version 2 or any later version.
extern crate apiserver_client as client;
extern crate clap;
extern crate futures;
extern crate futures_ext;
extern crate tokio;
use std::string::String;
use clap::{App, Arg, ArgMatches, SubCommand};
use futures::{Future, IntoFuture};
use futures_ext::{BoxFuture, FutureExt};
use crate::client::MononokeAPIClient;
use apiserver_client::MononokeAPIClient;
fn cat(client: MononokeAPIClient, matches: &ArgMatches<'_>) -> BoxFuture<(), ()> {
let revision = matches.value_of("revision").expect("must provide revision");