Fusion / libui.cr

Crystal-lang bindings for libui
MIT License
176 stars 17 forks source link

Reformatted and fixed to work on Crystal 0.19.4 #2

Closed zatherz closed 8 years ago

zatherz commented 8 years ago

Crystal 0.19.0 removed the special cast syntax (var as Type) in favor of the method (var.as(Type)).

Reformatted initially using crystal tool format, which fixed most of the errors, then hand-fixed the left over special as syntax casts.

Also fixed examples. In the crgallery example I converted hardcoded paths to File.join(__DIR__, "whatever").

Fusion commented 8 years ago

Thanks. That's a good change. I should be more careful with Crystal's formatting rules.