Skip to content

Commit

Permalink
chore: make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangsoledad committed Jan 8, 2025
1 parent 9927aea commit efd8f42
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 @@ -9,6 +9,7 @@ mod vm_version_0;
mod vm_version_1;

#[test]
#[allow(clippy::assertions_on_constants)]
fn test_max_argv_length() {
assert!(crate::syscalls::MAX_ARGV_LENGTH < u64::MAX);
}
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 {
}
}

/// unexpected argv
pub const ARGV_TOO_LONG_TEXT: &str = "@@@VM@@@UNEXPECTED@@@ARGV@@@TOOLONG@@@";

0 comments on commit efd8f42

Please sign in to comment.