Skip to content

Commit b98ac9b

Browse files
authored
Merge pull request #289 from Sacha0/fixdepwarns
fix depwarns under 0.7 and bump REQUIRE and CI to 0.6
2 parents 8b19778 + 7fbbc44 commit b98ac9b

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ os:
33
- osx
44
- linux
55
julia:
6-
- 0.5
76
- 0.6
87
- nightly
98
notifications:

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
julia 0.5
1+
julia 0.6
22
ColorTypes 0.3.0
33
FixedPointNumbers 0.3.0
44
Reexport

src/differences.jl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# TODO?: make the DifferenMetrics parametric, to preserve type-stability
66

77
# CIE Delta E 2000 recommendation
8-
immutable DE_2000 <: DifferenceMetric
8+
struct DE_2000 <: DifferenceMetric
99
kl::Float64
1010
kc::Float64
1111
kh::Float64
@@ -14,7 +14,7 @@ immutable DE_2000 <: DifferenceMetric
1414
end
1515

1616
# CIE Delta E 94 recommendation
17-
immutable DE_94 <: DifferenceMetric
17+
struct DE_94 <: DifferenceMetric
1818
kl::Float64
1919
kc::Float64
2020
kh::Float64
@@ -23,20 +23,20 @@ immutable DE_94 <: DifferenceMetric
2323
end
2424

2525
# McDonald "JP Coates Thread Company" formulation
26-
immutable DE_JPC79 <: DifferenceMetric
26+
struct DE_JPC79 <: DifferenceMetric
2727

2828
end
2929

3030
# CMC recommendation
31-
immutable DE_CMC <: DifferenceMetric
31+
struct DE_CMC <: DifferenceMetric
3232
kl::Float64
3333
kc::Float64
3434
DE_CMC(kl,kc) = new(kl,kc)
3535
DE_CMC() = new(1,1)
3636
end
3737

3838
# BFD recommendation
39-
immutable DE_BFD <: DifferenceMetric
39+
struct DE_BFD <: DifferenceMetric
4040
wp::XYZ{Float64}
4141
kl::Float64
4242
kc::Float64
@@ -46,22 +46,22 @@ immutable DE_BFD <: DifferenceMetric
4646
end
4747

4848
# The original CIE Delta E equation (Euclidian)
49-
immutable DE_AB <: DifferenceMetric
49+
struct DE_AB <: DifferenceMetric
5050

5151
end
5252

5353
# DIN99 color difference (Euclidian)
54-
immutable DE_DIN99 <: DifferenceMetric
54+
struct DE_DIN99 <: DifferenceMetric
5555

5656
end
5757

5858
# DIN99d color difference (Euclidian)
59-
immutable DE_DIN99d <: DifferenceMetric
59+
struct DE_DIN99d <: DifferenceMetric
6060

6161
end
6262

6363
# DIN99o color difference (Euclidian)
64-
immutable DE_DIN99o <: DifferenceMetric
64+
struct DE_DIN99o <: DifferenceMetric
6565

6666
end
6767

0 commit comments

Comments
 (0)