Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix illegal default type parameters #2

Merged
merged 1 commit into from
Oct 5, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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