Skip to content

Commit

Permalink
Merge pull request #4772 from eval-exec/exec/fix-clippy
Browse files Browse the repository at this point in the history
chore: fix clippy
  • Loading branch information
eval-exec authored Jan 8, 2025
2 parents 56f4410 + 16d0978 commit c1e46fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion script/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
1 change: 1 addition & 0 deletions script/src/syscalls/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions util/types/src/core/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,5 @@ impl OutPointError {
}
}

#[allow(missing_docs)]
pub const ARGV_TOO_LONG_TEXT: &str = "@@@VM@@@UNEXPECTED@@@ARGV@@@TOOLONG@@@";

0 comments on commit c1e46fc

Please sign in to comment.