[gnome-builder] cargo: pass empty flags
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] cargo: pass empty flags
- Date: Sat, 29 Oct 2016 01:46:46 +0000 (UTC)
commit 103536c32d3e11d1ca4dbc7cb24d7933c9f01d00
Author: Christian Hergert <chergert redhat com>
Date: Fri Oct 28 18:46:37 2016 -0700
cargo: pass empty flags
We really ought to make this (default 0) in introspection.
plugins/cargo/cargo_plugin.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/cargo/cargo_plugin.py b/plugins/cargo/cargo_plugin.py
index d8579f7..20c064c 100644
--- a/plugins/cargo/cargo_plugin.py
+++ b/plugins/cargo/cargo_plugin.py
@@ -47,7 +47,7 @@ class CargoBuildSystem(Ide.Object, Ide.BuildSystem, Gio.AsyncInitable):
return
# Maybe this is a directory with a Cargo.toml
- if self.props.project_file.query_file_type() == Gio.FileType.DIRECTORY:
+ if self.props.project_file.query_file_type(0) == Gio.FileType.DIRECTORY:
child = self.props.project_file.get_child('Cargo.toml')
if child.query_exists(None):
self.props.project_file = child
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]