Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sergej Kostjucenko
cargo-contract
Commits
9d2194ae
Unverified
Commit
9d2194ae
authored
Nov 12, 2021
by
Michael Müller
Browse files
Only convert path if specified
parent
64c60767
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cmd/build.rs
View file @
9d2194ae
...
...
@@ -178,8 +178,10 @@ impl BuildCommand {
verbosity
=
Verbosity
::
Quiet
;
}
let
metadata_contract_path
=
ManifestPath
::
try_from
(
self
.metadata_contract_path
.as_ref
())
.ok
();
let
metadata_contract_path
=
self
.metadata_contract_path
.as_ref
()
.map
(|
_
|
{
ManifestPath
::
try_from
(
self
.metadata_contract_path
.as_ref
())
.expect
(
"conversion of metadata contract path failed"
)
});
let
args
=
ExecuteArgs
{
manifest_path
,
verbosity
,
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment