Fix up some warnings and move integration tests to correct dir

This commit is contained in:
Jonathan Turner 2019-06-03 15:48:58 +12:00
parent 47ee9780f1
commit 2a20192519
4 changed files with 3 additions and 4 deletions

View file

@ -35,7 +35,7 @@ impl<T> MaybeOwned<'a, T> {
}
}
pub async fn cli() -> Result<(), Box<Error>> {
pub async fn cli() -> Result<(), Box<dyn Error>> {
let mut context = Context::basic()?;
{

View file

@ -12,7 +12,7 @@ pub struct Context {
}
impl Context {
crate fn basic() -> Result<Context, Box<Error>> {
crate fn basic() -> Result<Context, Box<dyn Error>> {
Ok(Context {
commands: indexmap::IndexMap::new(),
host: Arc::new(Mutex::new(crate::env::host::BasicHost)),

View file

@ -17,13 +17,12 @@ mod parser;
mod prelude;
mod shell;
mod stream;
mod tests;
use clap::{App, Arg};
use log::LevelFilter;
use std::error::Error;
fn main() -> Result<(), Box<Error>> {
fn main() -> Result<(), Box<dyn Error>> {
let matches = App::new("nu shell")
.version("0.5")
.arg(