Skip to content

Commit efe5870

Browse files
authored
Merge pull request #25 from axelson/fix-compilation-warnings
Fix compilation warnings on recent versions of Elixir
2 parents f16cbed + 72a6995 commit efe5870

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

config/config.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is responsible for configuring your application
22
# and its dependencies with the aid of the Mix.Config module.
3-
use Mix.Config
3+
import Config
44

55
# This configuration is loaded before any dependency and is restricted
66
# to this project. If another project depends on this project, this

lib/temp.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ defmodule Temp do
263263
Integer.to_string(rand_uniform(0x100000000), 36) |> String.downcase
264264
end
265265

266-
if :erlang.system_info(:otp_release) >= '18' do
266+
if :erlang.system_info(:otp_release) >= ~c"18" do
267267
defp rand_uniform(num) do
268268
:rand.uniform(num)
269269
end

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defmodule Temp.Mixfile do
88
[
99
app: :temp,
1010
version: @version,
11-
elixir: "~> 1.0",
11+
elixir: "~> 1.9",
1212
name: "temp",
1313
source_url: @source_url,
1414
homepage_url: @source_url,

0 commit comments

Comments
 (0)