File tree Expand file tree Collapse file tree
crates/hotfix-message/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,4 +17,5 @@ pub use encoding::fix42;
1717pub use encoding:: fix44;
1818pub use hotfix_derive:: FieldType ;
1919pub use hotfix_dictionary:: { self as dict, TagU32 } ;
20+ pub use parser:: SOH ;
2021pub use parts:: { Part , RepeatingGroup } ;
Original file line number Diff line number Diff line change @@ -131,6 +131,12 @@ pub struct Config {
131131 pub ( crate ) separator : u8 ,
132132}
133133
134+ impl Config {
135+ pub const fn with_separator ( separator : u8 ) -> Self {
136+ Self { separator }
137+ }
138+ }
139+
134140impl Default for Config {
135141 fn default ( ) -> Self {
136142 Self { separator : SOH }
Original file line number Diff line number Diff line change @@ -377,7 +377,7 @@ mod tests {
377377 use crate :: { Part , fix44} ;
378378 use hotfix_dictionary:: { Dictionary , IsFieldDefinition } ;
379379
380- const CONFIG : Config = Config { separator : b'|' } ;
380+ const CONFIG : Config = Config :: with_separator ( b'|' ) ;
381381
382382 #[ test]
383383 fn parse_simple_message ( ) {
You can’t perform that action at this time.
0 commit comments