Commit ba7489ea authored by Chunchi Che's avatar Chunchi Che

fix compile

parent 8c0f9e0f
......@@ -44,22 +44,22 @@ pub struct CardTexts {
impl CardTexts {
pub fn get_str_by_offset(&self, offset: usize) -> Option<String> {
match offset {
1 => self.str1,
2 => self.str2,
3 => self.str3,
4 => self.str4,
5 => self.str5,
6 => self.str6,
7 => self.str7,
8 => self.str8,
9 => self.str9,
10 => self.str10,
11 => self.str11,
12 => self.str12,
13 => self.str13,
14 => self.str14,
15 => self.str15,
16 => self.str16,
1 => self.str1.to_owned(),
2 => self.str2.to_owned(),
3 => self.str3.to_owned(),
4 => self.str4.to_owned(),
5 => self.str5.to_owned(),
6 => self.str6.to_owned(),
7 => self.str7.to_owned(),
8 => self.str8.to_owned(),
9 => self.str9.to_owned(),
10 => self.str10.to_owned(),
11 => self.str11.to_owned(),
12 => self.str12.to_owned(),
13 => self.str13.to_owned(),
14 => self.str14.to_owned(),
15 => self.str15.to_owned(),
16 => self.str16.to_owned(),
_ => None,
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment