Skip to content

Commit 97540b2

Browse files
committed
run rustfmt
1 parent 18c6ff8 commit 97540b2

File tree

9 files changed

+579
-598
lines changed

9 files changed

+579
-598
lines changed

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[package]
22
name = "lazy-static-include"
3-
version = "2.2.0"
3+
version = "2.2.1"
44
authors = ["Magic Len <len@magiclen.org>"]
5+
edition = "2018"
56
repository = "https://github.com/magiclen/lazy-static-include"
67
homepage = "https://magiclen.org/lazy-static-include"
78
keywords = ["lazy", "macro", "static", "include"]
@@ -17,11 +18,12 @@ branch = "master"
1718
[dependencies]
1819
lazy_static = "1.3"
1920
syn = {version = "0.15", features = ["parsing", "full", "extra-traits"]}
20-
starts-ends-with-caseless = "0.2.0"
21+
starts-ends-with-caseless = "0.5"
2122

2223
[dev-dependencies]
2324
bencher = "0.1.5"
2425
serde_json = "1.0"
26+
assert_approx_eq = "1.1"
2527

2628
[[bench]]
2729
name = "bench"

benches/bench.rs

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,23 @@ fn include_array_lazy_static(bencher: &mut Bencher) {
108108
});
109109
}
110110

111-
benchmark_group!(include_str, include_str_no_static, include_str_native_static, include_str_lazy_static);
112-
benchmark_group!(include_bytes, include_bytes_no_static, include_bytes_native_static, include_bytes_lazy_static);
113-
benchmark_group!(include_array, include_array_no_static, include_array_native_static, include_array_lazy_static);
114-
115-
benchmark_main!(include_str, include_bytes, include_array);
111+
benchmark_group!(
112+
include_str,
113+
include_str_no_static,
114+
include_str_native_static,
115+
include_str_lazy_static
116+
);
117+
benchmark_group!(
118+
include_bytes,
119+
include_bytes_no_static,
120+
include_bytes_native_static,
121+
include_bytes_lazy_static
122+
);
123+
benchmark_group!(
124+
include_array,
125+
include_array_no_static,
126+
include_array_native_static,
127+
include_array_lazy_static
128+
);
129+
130+
benchmark_main!(include_str, include_bytes, include_array);

rustfmt.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
brace_style = "PreferSameLine"
2+
enum_discrim_align_threshold = 100
3+
force_explicit_abi = false
4+
force_multiline_blocks = true
5+
format_code_in_doc_comments = true
6+
format_macro_matchers = true
7+
max_width = 100
8+
newline_style = "Unix"
9+
normalize_doc_attributes = true
10+
overflow_delimited_expr = true
11+
reorder_impl_items = true
12+
struct_lit_single_line = false
13+
use_field_init_shorthand = true
14+
use_small_heuristics = "Off"
15+
use_try_shorthand = true

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pub extern crate syn;
142142
#[doc(hidden)]
143143
pub extern crate starts_ends_with_caseless;
144144

145+
mod macro_include_array;
146+
mod macro_include_bytes;
145147
mod macro_include_counter;
146148
mod macro_include_str;
147-
mod macro_include_bytes;
148-
mod macro_include_array;

0 commit comments

Comments
 (0)