-
Notifications
You must be signed in to change notification settings - Fork 130
/
clippy.toml
26 lines (25 loc) · 975 Bytes
/
clippy.toml
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
allow-panic-in-tests = true
disallowed-methods = [
# These methods are not allowed since they are not secure, because they use `localtime_r` under
# the hood.
# See https://rustsec.org/advisories/RUSTSEC-2020-0159 and
# https://rustsec.org/advisories/RUSTSEC-2020-0071 for more information.
"time::UtcOffset::local_offset_at",
"time::UtcOffset::try_local_offset_at",
"time::UtcOffset::current_local_offset",
"time::UtcOffset::try_current_local_offset",
"time::OffsetDateTime::now_local",
"time::OffsetDateTime::try_now_local",
"time::at",
"time::at_utc",
"time::now",
"chrono::Local::now",
"chrono::Local::today",
"chrono::Local::offset_from_local_datetime",
"chrono::Local::from_local_date",
"chrono::Local::offset_from_local_date",
"chrono::Local::from_utc_datetime",
"chrono::Local::offset_from_utc_datetime",
"chrono::Local::from_utc_date",
"chrono::Local::offset_from_utc_date",
]