Skip to content

Commit 464b319

Browse files
committed
chore: address pr review comments
1 parent 487ebbe commit 464b319

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

stackslib/src/net/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2487,17 +2487,15 @@ pub mod test {
24872487
name: ContractName::try_from(
24882488
conf.test_name
24892489
.replace("::", "-")
2490-
.to_string()
2490+
.trim_start_matches(|c: char| !c.is_alphabetic())
24912491
.chars()
24922492
// ensure auto-generated contract names are not too long
24932493
.skip(
24942494
conf.test_name
24952495
.len()
24962496
.saturating_sub(CONTRACT_MAX_NAME_LENGTH),
24972497
)
2498-
.collect::<String>()
2499-
.trim_start_matches(|c: char| !c.is_alphabetic())
2500-
.to_string(),
2498+
.collect::<String>(),
25012499
)
25022500
.expect("FATAL: invalid boot-code contract name"),
25032501
code_body: StacksString::from_str(&conf.setup_code)

0 commit comments

Comments
 (0)