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
45
46
47
# signify-rs's clippy configuration
# please use cargo +nightly clippy if/when you can
= 10
= 0
= 150
= [
'std::dbg',
'std::todo',
'std::unimplemented',
]
= [
# Panics on invalid UTF-8, use var_os instead.
"std::env::var",
# Panics on invalid UTF-8, use syd::compat::getdents64 instead.
"std::fs::read_dir",
"std::fs::read_to_string",
# Use proper error handling.
"std::option::Option::expect",
"std::option::Option::unwrap",
"std::result::Result::expect",
"std::result::Result::unwrap",
# Use the tempdir crate instead.
"std::env::temp_dir",
# Use `std::thread::Builder` and name the thread.
"std::thread::spawn",
# We compile with panic = "abort".
"std::panic::catch_unwind",
# Panicing UTF-8 validation in environment variables.
# use std::env::var_os instead.
"std::env::var",
# Use OpenOptions with explicit intent.
"std::fs::File::open",
"std::fs::File::create",
]
= [
]
= [
"..",
]