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