Skip to content

Commit

Permalink
add rustfmt configs
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurnikov committed Sep 30, 2020
1 parent 7753356 commit caef884
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 1 addition & 3 deletions crates/integration_tests/tests/test_compilation_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ mod tests {
use super::*;
use analysis::db::RootDatabase;

use integration_tests::{
config, get_modules_path, get_script_path, get_stdlib_path, modules_mod,
};
use integration_tests::{config, get_modules_path, get_script_path, get_stdlib_path, modules_mod};
use utils::{leaked_fpath, FilesSourceText};

#[test]
Expand Down
4 changes: 1 addition & 3 deletions crates/integration_tests/tests/test_lsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ use integration_tests::{config, get_script_path};
use lsp_types::notification::{DidChangeConfiguration, DidChangeWatchedFiles, Initialized};

use move_language_server::global_state::{initialize_new_global_state, GlobalState};
use move_language_server::main_loop::{
main_loop, notification_new, request_new, FileSystemEvent,
};
use move_language_server::main_loop::{main_loop, notification_new, request_new, FileSystemEvent};
use move_language_server::server::run_server;

const SHUTDOWN_REQ_ID: u64 = 10;
Expand Down
7 changes: 7 additions & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
max_width = 98
edition = "2018"

# automatically replace R { x: x } with R { x }
use_field_init_shorthand = true

# disable alphabetical import reordering within groups
reorder_imports = false

0 comments on commit caef884

Please sign in to comment.