Skip to content

Commit f189506

Browse files
committed
clipy
1 parent 8467df2 commit f189506

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

libs/stringtable/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub use package::Package;
1414
pub use totals::Totals;
1515
use tracing::error;
1616

17-
/// Languages in ArmA's className format
17+
/// Languages in className format
1818
static ALL_LANGUAGES: [&str; 25] = [
1919
"English",
2020
"Czech",

libs/stringtable/src/rapify.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
6163
pub 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);

0 commit comments

Comments
 (0)