Commit ba7489ea authored by Chunchi Che's avatar Chunchi Che

fix compile

parent 8c0f9e0f
Pipeline #18804 passed with stages
in 8 minutes and 57 seconds
...@@ -44,22 +44,22 @@ pub struct CardTexts { ...@@ -44,22 +44,22 @@ pub struct CardTexts {
impl CardTexts { impl CardTexts {
pub fn get_str_by_offset(&self, offset: usize) -> Option<String> { pub fn get_str_by_offset(&self, offset: usize) -> Option<String> {
match offset { match offset {
1 => self.str1, 1 => self.str1.to_owned(),
2 => self.str2, 2 => self.str2.to_owned(),
3 => self.str3, 3 => self.str3.to_owned(),
4 => self.str4, 4 => self.str4.to_owned(),
5 => self.str5, 5 => self.str5.to_owned(),
6 => self.str6, 6 => self.str6.to_owned(),
7 => self.str7, 7 => self.str7.to_owned(),
8 => self.str8, 8 => self.str8.to_owned(),
9 => self.str9, 9 => self.str9.to_owned(),
10 => self.str10, 10 => self.str10.to_owned(),
11 => self.str11, 11 => self.str11.to_owned(),
12 => self.str12, 12 => self.str12.to_owned(),
13 => self.str13, 13 => self.str13.to_owned(),
14 => self.str14, 14 => self.str14.to_owned(),
15 => self.str15, 15 => self.str15.to_owned(),
16 => self.str16, 16 => self.str16.to_owned(),
_ => None, _ => 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