Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FOR COMPILER TEAM: update to 2018 Edition for real (another/still ICE) #136

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ use std::env::current_dir;
use std::path::Path;
use std::path::PathBuf;
use tempfile::Builder;
use upstream::core::GitReference;
use upstream::sources::git::GitRemote;
use upstream::util::config::Config;
use crate::upstream::core::GitReference;
use crate::upstream::sources::git::GitRemote;
use crate::upstream::util::config::Config;
use url::{ParseError, Url};
pub struct GitConfig {
remote: Url,
Expand Down
2 changes: 1 addition & 1 deletion src/interactive.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use console::style;
use dialoguer::Input;
use emoji;
use crate::emoji;
use quicli::prelude::Error;
use regex;

Expand Down
6 changes: 4 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ mod projectname;
mod template;

use console::style;
use git::GitConfig;
use projectname::ProjectName;
use crate::git::GitConfig;
use crate::projectname::ProjectName;
use quicli::prelude::*;
use structopt::{structopt, StructOpt};

use std::env;

/// Generate a new Cargo project from a given template
Expand Down
6 changes: 3 additions & 3 deletions src/template.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use cargo;
use crate::cargo;
use console::style;
use emoji;
use crate::emoji;
use indicatif::ProgressBar;
use liquid;
use projectname::ProjectName;
use crate::projectname::ProjectName;
use quicli::prelude::*;
use std::fs;
use std::path::PathBuf;
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/basics.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extern crate predicates;

use helpers::project_builder::dir;
use crate::helpers::project_builder::dir;

use assert_cmd::prelude::*;
use predicates::prelude::*;
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/helpers/project_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::path::PathBuf;
use std::str;
use std::sync::atomic::*;

use helpers::project::Project;
use crate::helpers::project::Project;
use remove_dir_all::remove_dir_all;

static CNT: AtomicUsize = ATOMIC_USIZE_INIT;
Expand Down