Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos-rs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Neos-rs
Commits
ba7489ea
Commit
ba7489ea
authored
Dec 24, 2022
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix compile
parent
8c0f9e0f
Pipeline
#18804
passed with stages
in 8 minutes and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
src/service/cards/db/model.rs
src/service/cards/db/model.rs
+16
-16
No files found.
src/service/cards/db/model.rs
View file @
ba7489ea
...
@@ -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
,
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment