Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Check the code with rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
r-darwish committed Jul 4, 2018
1 parent f8a9552 commit e1d2487
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ matrix:
before_install:
- set -e
- rustup self update
- rustup component add rustfmt-preview

install:
- sh ci/install.sh
Expand Down
1 change: 1 addition & 0 deletions ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 2 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/vim.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit e1d2487

Please sign in to comment.