Skip to content

Commit ebd3bea

Browse files
committed
style: improve code
1 parent d9ec01a commit ebd3bea

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ Cargo.lock
2323
# Added by cargo
2424

2525
/target
26+
.editorconfig

rustfmt.toml

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,12 @@ max_width = 120
22
use_small_heuristics = "Max"
33
use_field_init_shorthand = true
44
reorder_imports = true
5-
edition = "2021"
5+
edition = "2021"
6+
newline_style = "Unix"
7+
hard_tabs = false
8+
tab_spaces = 4
9+
reorder_modules = true
10+
remove_nested_parens = true
11+
merge_derives = true
12+
use_try_shorthand = false
13+
force_explicit_abi = true

src/lib.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -201,5 +201,8 @@ pub use trie::Trie;
201201
/// use sensitive_rs::TrieNode;
202202
///
203203
/// let mut node = TrieNode::new('a', false);
204+
///
205+
/// assert!(!node.is_root_node());
206+
/// assert!(!node.is_end())
204207
/// ```
205-
pub use trie::TrieNode;
208+
pub use trie::TrieNode;

0 commit comments

Comments
 (0)