Skip to content

Commit

Permalink
Merge pull request #2 from petrochenkov/master
Browse files Browse the repository at this point in the history
Fix illegal default type parameters
  • Loading branch information
dpc authored Oct 5, 2016
2 parents d9c6dd1 + 29a575e commit 234dbe8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/algo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ pub mod los {
use hex2d::Direction;
use hex2d::Coordinate;

fn los_rec<FOpaqueness, FVisible, I=i32>(
fn los_rec<FOpaqueness, FVisible, I>(
opaqueness : &FOpaqueness,
visible : &mut FVisible,
light: I,
Expand Down Expand Up @@ -196,7 +196,7 @@ pub mod los {
/// by `opaqueness` will be subtracted from `light` to check if the LoS should finish due to
/// "lack of visibility". `opaqueness` should typically return 1 for fully transparent
/// Coordinates, and anything bigger than initial `light` for fully opaque Coordinates.
pub fn los<FOpaqueness, FVisible, I=i32>(
pub fn los<FOpaqueness, FVisible, I>(
opaqueness : &FOpaqueness,
visible : &mut FVisible,
light: I,
Expand Down Expand Up @@ -225,7 +225,7 @@ pub mod los2 {
use std::ops::{Add};
use std::cmp;

fn los_check_line<FOpaqueness, I=u32>(
fn los_check_line<FOpaqueness, I>(
opaqueness : &FOpaqueness,
light: I,
start : Coordinate<I>,
Expand Down Expand Up @@ -266,7 +266,7 @@ pub mod los2 {
}
}

fn los_rec<FOpaqueness, FVisible, I=i32>(
fn los_rec<FOpaqueness, FVisible, I>(
opaqueness : &FOpaqueness,
visible : &mut FVisible,
light: I,
Expand Down Expand Up @@ -332,7 +332,7 @@ pub mod los2 {
/// by `opaqueness` will be subtracted from `light` to check if the LoS should finish due to
/// "lack of visibility". `opaqueness` should typically return 1 for fully transparent
/// Coordinates, and anything bigger than initial `light` for fully opaque Coordinates.
pub fn los<FOpaqueness, FVisible, I=i32>(
pub fn los<FOpaqueness, FVisible, I>(
opaqueness : &FOpaqueness,
visible : &mut FVisible,
light: I,
Expand Down

0 comments on commit 234dbe8

Please sign in to comment.