1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#![warn(
clippy::all,
clippy::cargo,
clippy::missing_docs_in_private_items,
clippy::nursery,
clippy::pedantic,
clippy::restriction
)]
#![allow(
clippy::as_conversions,
clippy::blanket_clippy_restriction_lints,
clippy::cast_possible_truncation,
clippy::cast_possible_wrap,
clippy::cast_precision_loss,
clippy::cast_sign_loss,
clippy::default_numeric_fallback,
clippy::else_if_without_else,
clippy::exhaustive_enums,
clippy::exhaustive_structs,
clippy::float_arithmetic,
clippy::implicit_return,
clippy::indexing_slicing,
clippy::integer_arithmetic,
clippy::integer_division,
clippy::missing_panics_doc,
clippy::module_name_repetitions,
clippy::modulo_arithmetic,
clippy::multiple_crate_versions,
clippy::multiple_inherent_impl,
clippy::panic_in_result_fn,
clippy::panic,
clippy::print_stdout,
clippy::unreachable,
clippy::unwrap_used
)]
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}