Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ion
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
redox-os
ion
Commits
4c95c03b
Commit
4c95c03b
authored
9 years ago
by
stratact
Browse files
Options
Downloads
Patches
Plain Diff
Remove bindings, no need to cache
parent
0fa9fe5b
No related branches found
No related tags found
1 merge request
!53
Code cleanup
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/variables.rs
+4
-6
4 additions, 6 deletions
src/variables.rs
with
4 additions
and
6 deletions
src/variables.rs
+
4
−
6
View file @
4c95c03b
...
@@ -16,15 +16,13 @@ impl Variables {
...
@@ -16,15 +16,13 @@ impl Variables {
pub
fn
read
(
&
mut
self
,
args
:
&
[
String
])
{
pub
fn
read
(
&
mut
self
,
args
:
&
[
String
])
{
let
mut
out
=
stdout
();
let
mut
out
=
stdout
();
for
i
in
1
..
args
.len
()
{
for
i
in
1
..
args
.len
()
{
if
let
Some
(
arg_original
)
=
args
.get
(
i
)
{
if
let
Some
(
arg
)
=
args
.get
(
i
)
{
let
arg
=
arg_original
.trim
();
print!
(
"{}="
,
arg
.trim
());
print!
(
"{}="
,
arg
);
if
let
Err
(
message
)
=
out
.flush
()
{
if
let
Err
(
message
)
=
out
.flush
()
{
println!
(
"{}: Failed to flush stdout"
,
message
);
println!
(
"{}: Failed to flush stdout"
,
message
);
}
}
if
let
Some
(
value_original
)
=
readln
()
{
if
let
Some
(
value
)
=
readln
()
{
let
value
=
value_original
.trim
();
self
.set_var
(
arg
,
value
.trim
());
self
.set_var
(
arg
,
value
);
}
}
}
}
}
}
...
...
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