@@ -72,16 +72,23 @@ impl std::fmt::Display for FCEError {
72
72
FCEError :: PrepareError ( msg) => {
73
73
write ! ( f, "Prepare error: {}, probably module is mailformed" , msg)
74
74
}
75
- FCEError :: NonUniqueModuleName => {
76
- write ! ( f, "FCE already has module with such a name" )
77
- }
75
+ FCEError :: NonUniqueModuleName => write ! ( f, "FCE already has module with such a name" ) ,
78
76
FCEError :: NoSuchFunction ( msg) => {
79
77
write ! ( f, "FCE doesn't have a function with such a name: {}" , msg)
80
78
}
81
79
FCEError :: NoSuchModule => write ! ( f, "FCE doesn't have a module with such a name" ) ,
82
- FCEError :: NoWITSection => write ! ( f, "Loaded module doesn't contain WIT section that is neccessary for instantiation" ) ,
83
- FCEError :: MultipleWITSections => write ! ( f, "Loaded module contains multiple WIT sections that is unsupported now" ) ,
84
- FCEError :: WITRemainderNotEmpty => write ! ( f, "WIT section remainder isn't empty - WIT section possibly corrupted" ) ,
80
+ FCEError :: NoWITSection => write ! (
81
+ f,
82
+ "Loaded module doesn't contain WIT section that is neccessary for instantiation"
83
+ ) ,
84
+ FCEError :: MultipleWITSections => write ! (
85
+ f,
86
+ "Loaded module contains multiple WIT sections that is unsupported now"
87
+ ) ,
88
+ FCEError :: WITRemainderNotEmpty => write ! (
89
+ f,
90
+ "WIT section remainder isn't empty - WIT section possibly corrupted"
91
+ ) ,
85
92
FCEError :: WITParseError => write ! ( f, "WIT section is corrupted" ) ,
86
93
}
87
94
}
0 commit comments