diff --git a/script/src/error.rs b/script/src/error.rs index f3185cdecf..9d55d7a67f 100644 --- a/script/src/error.rs +++ b/script/src/error.rs @@ -230,7 +230,7 @@ mod tests { #[test] fn test_vm_internal_error_preserves_text() { let vm_error = VMInternalError::Unexpected(ARGV_TOO_LONG_TEXT.to_string()); - let script_error = ScriptError::VMInternalError(vm_error.clone()); + let script_error = ScriptError::VMInternalError(vm_error); let error: Error = script_error.output_type_script(177).into(); assert!(format!("{}", error).contains(ARGV_TOO_LONG_TEXT)); diff --git a/script/src/syscalls/tests/mod.rs b/script/src/syscalls/tests/mod.rs index 61008ccbfa..da699c7869 100644 --- a/script/src/syscalls/tests/mod.rs +++ b/script/src/syscalls/tests/mod.rs @@ -8,6 +8,7 @@ mod vm_version_0; #[path = "vm_latest/mod.rs"] mod vm_version_1; +#[allow(clippy::assertions_on_constants)] #[test] fn test_max_argv_length() { assert!(crate::syscalls::MAX_ARGV_LENGTH < u64::MAX); diff --git a/util/types/src/core/error.rs b/util/types/src/core/error.rs index 3909b906a1..26978e9ded 100644 --- a/util/types/src/core/error.rs +++ b/util/types/src/core/error.rs @@ -224,4 +224,5 @@ impl OutPointError { } } +#[allow(missing_docs)] pub const ARGV_TOO_LONG_TEXT: &str = "@@@VM@@@UNEXPECTED@@@ARGV@@@TOOLONG@@@";