Files
libsignal/.clippy.toml
Jordan Rose 1bf4a3c6f5 Prefer expect() to unwrap() in many crates
(and avoid either in a few cases)
2025-11-21 12:06:45 -08:00

12 lines
695 B
TOML

too-many-arguments-threshold = 8
disallowed-methods = [
{ path = "jni::JNIEnv::find_class", reason = "use lookup helper instead" },
{ path = "jni::JNIEnv::call_method", reason = "use helper method instead" },
{ path = "jni::JNIEnv::call_method_unchecked", reason = "use helper method instead" },
{ path = "jni::JNIEnv::call_static_method", reason = "use helper method instead" },
{ path = "jni::JNIEnv::call_static_method_unchecked", reason = "use helper method instead" },
{ path = "jni::JNIEnv::new_object", reason = "use helper method instead" },
{ path = "jni::JNIEnv::new_object_unchecked", reason = "use helper method instead" },
]
allow-unwrap-in-tests = true