File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ pub use package::Package;
1414pub use totals:: Totals ;
1515use tracing:: error;
1616
17- /// Languages in ArmA's className format
17+ /// Languages in className format
1818static ALL_LANGUAGES : [ & str ; 25 ] = [
1919 "English" ,
2020 "Czech" ,
Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ fn write_int(buffer: &mut Vec<u8>, input: i32) {
5858 buffer. extend ( & input. to_le_bytes ( ) ) ;
5959}
6060
61+ #[ must_use]
62+ /// # Panics
6163pub fn rapify ( project : & Project ) -> Option < XmlbLayout > {
6264 let mut data: XmlbLayout = XmlbLayout :: default ( ) ;
6365
@@ -135,7 +137,7 @@ pub fn rapify(project: &Project) -> Option<XmlbLayout> {
135137 i32:: try_from ( translation. phrases . len ( ) ) . expect ( "overflow" ) ,
136138 ) ;
137139 for phrase in & translation. phrases {
138- write_string ( & mut translation_buffer, & phrase) ;
140+ write_string ( & mut translation_buffer, phrase) ;
139141 }
140142 rolling_offset += translation_buffer. len ( ) ;
141143 data. translations . push ( translation_buffer) ;
You can’t perform that action at this time.
0 commit comments