Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
rav1e
Commits
1c49ccb3
Commit
1c49ccb3
authored
Jun 16, 2019
by
Luca Barbato
Committed by
Luca Barbato
Jun 19, 2019
Browse files
Update trim_right_matches usage
parent
554eb778
Changes
1
Hide whitespace changes
Inline
Side-by-side
crates/nasm_rs/src/lib.rs
View file @
1c49ccb3
...
...
@@ -192,7 +192,7 @@ impl Build {
let
lib_name
=
if
lib_name
.starts_with
(
"lib"
)
&&
lib_name
.ends_with
(
".a"
)
{
&
lib_name
[
3
..
lib_name
.len
()
-
2
]
}
else
{
lib_name
.trim_
right
_matches
(
".lib"
)
lib_name
.trim_
end
_matches
(
".lib"
)
};
let
target
=
self
.get_target
();
...
...
Write
Preview
Supports
Markdown
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