mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
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:
parent
acd6f0361e
commit
e0b78cc3a6
@ -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;
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user