Check the code with rustfmt
This commit is contained in:
@@ -31,6 +31,7 @@ matrix:
|
||||
before_install:
|
||||
- set -e
|
||||
- rustup self update
|
||||
- rustup component add rustfmt-preview
|
||||
|
||||
install:
|
||||
- sh ci/install.sh
|
||||
|
||||
@@ -4,6 +4,7 @@ set -ex
|
||||
|
||||
# TODO This is the "test phase", tweak it as you see fit
|
||||
main() {
|
||||
cargo fmt --all -- --write-mode=check
|
||||
cross build --target $TARGET
|
||||
cross build --target $TARGET --release
|
||||
|
||||
|
||||
@@ -12,10 +12,10 @@ extern crate serde;
|
||||
extern crate shellexpand;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
extern crate app_dirs;
|
||||
extern crate env_logger;
|
||||
extern crate term_size;
|
||||
extern crate termcolor;
|
||||
extern crate app_dirs;
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
mod linux;
|
||||
@@ -198,8 +198,7 @@ fn run() -> Result<(), Error> {
|
||||
if let Some(nvimrc) = vim::nvimrc() {
|
||||
if let Some(plugin_framework) = vim::PluginFramework::detect(&nvimrc) {
|
||||
terminal.print_separator(&format!("neovim ({:?})", plugin_framework));
|
||||
run_vim(&nvim, &nvimrc, plugin_framework.upgrade_command())
|
||||
.report("neovim", &mut reports);
|
||||
run_vim(&nvim, &nvimrc, plugin_framework.upgrade_command()).report("neovim", &mut reports);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use super::home_path;
|
||||
use app_dirs::*;
|
||||
use std::fs;
|
||||
use std::path::PathBuf;
|
||||
use app_dirs::*;
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub enum PluginFramework {
|
||||
|
||||
Reference in New Issue
Block a user