Commit 4aaeed60 authored by Christian Hergert's avatar Christian Hergert
Browse files

cargo: Cargo.toml needs to be a path string

Now that the build target is rooted, we can fix the real issue, which is
a file being passed when a string is expected.

Fixes #772
parent 227fa774
......@@ -179,7 +179,7 @@ class CargoBuildTarget(Ide.Object, Ide.BuildTarget):
# Pass the Cargo.toml path so that we don't
# need to run from the project directory.
cargo_toml = context.ref_workdir().get_child('Cargo.toml')
cargo_toml = context.ref_workdir().get_child('Cargo.toml').get_path()
return [cargo, 'run', '--manifest-path', cargo_toml]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment