Skip to content

Commit

Permalink
fix(cli): add type annotation
Browse files Browse the repository at this point in the history
It seems to be required when building with an older rustc version.
This did work in nightly, and just seems to be some sort of limiation
in stable.
  • Loading branch information
Byron committed Jun 19, 2015
1 parent d1cf836 commit 62db3ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mako/cli/lib/engine.mako
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,9 @@ for kvarg in ${opt_values(KEY_VALUE_ARG)} {
continue;
}
let type_info =
## This type-annotation is not required in nightly (or newer rustc)
## TODO(ST): try to remove it once there is a newer stable
let type_info: Option<(&'static str, JsonTypeInfo)> =
match &temp_cursor.to_string()[..] {
% for schema, fe, f in schema_fields:
<%
Expand Down

0 comments on commit 62db3ae

Please sign in to comment.