Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
picodata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
picodata
Commits
89773cec
Commit
89773cec
authored
1 year ago
by
Yaroslav Dynnikov
Committed by
Егор Ивков
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
fix: arguments handling in tarantool subcommand
parent
d700d8ae
No related branches found
No related tags found
1 merge request
!486
fix: arguments handling in tarantool subcommand
Pipeline
#16874
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.rs
+2
-2
2 additions, 2 deletions
src/main.rs
with
2 additions
and
2 deletions
src/main.rs
+
2
−
2
View file @
89773cec
...
...
@@ -32,7 +32,7 @@ macro_rules! tarantool_main {
callback_data_type
:
$cb_data_ty:ty
,
callback_body
:
$cb_body:expr
)
=>
{{
let
tt_args
=
$tt_args
;
let
tt_args
:
Vec
<
_
>
=
$tt_args
;
// `argv` is a vec of pointers to data owned by `tt_args`, so
// make sure `tt_args` outlives `argv`, because the compiler is not
// gonna do that for you
...
...
@@ -210,7 +210,7 @@ fn main_tarantool(args: args::Tarantool) -> ! {
// XXX: `argv` is a vec of pointers to data owned by `tt_args`, so
// make sure `tt_args` outlives `argv`, because the compiler is not
// gonna do that for you
let
tt_args
=
args
.tt_args
();
let
tt_args
:
Vec
<
_
>
=
args
.tt_args
()
.unwrap
()
;
let
argv
=
tt_args
.iter
()
.map
(|
a
|
a
.as_ptr
())
.collect
::
<
Vec
<
_
>>
();
let
rc
=
unsafe
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment