refactor: switch StringBuilder capacity to size_hint
- Replace the StringBuilder(capacity=...) argument with size_hint=... in base32, base64, hex, SAM quoting/parsing. - Drop trailing commas after the last field in I2NP, NTCP2 and tunnel fragment enum variants (formatter cleanup). - No behavior change; encoded output and parsed fields are unchanged.
This commit is contained in:
1 parent
cadb8cd898
commit
274bb319ab
7 files changed
+12
-12
No files matched your search
+1
-1
@@ -75,7 +75,7 @@ pub(all) enum TunnelFragment {
|
||||
target~ : DeliveryTarget,
|
||||
fragmented~ : Bool,
|
||||
msg_id~ : UInt32,
|
||||
data~ : Bytes,
|
||||
data~ : Bytes
|
||||
)
|
||||
FollowOn(frag_num~ : Int32, is_last~ : Bool, msg_id~ : UInt32, data~ : Bytes)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user