File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -162,8 +162,8 @@ defmodule System do
162
162
defp write_tmp_dir ( dir ) do
163
163
case :file . read_file_info ( dir ) do
164
164
{ :ok , info } ->
165
- type_index = File.Stat . __index__ :type
166
- access_index = File.Stat . __index__ :access
165
+ type_index = File.Stat . __record__ ( :index , :type )
166
+ access_index = File.Stat . __record__ ( :index , :access )
167
167
case { elem ( info , type_index ) , elem ( info , access_index ) } do
168
168
{ :directory , access } when access in [ :read_write , :write ] ->
169
169
dir
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ defmodule Mix.Deps do
82
82
deps = Enum . filter all_deps , fn ( dep ) -> dep . app in apps end
83
83
84
84
# Now we validate the given atoms
85
- index = Mix.Dep . __index__ ( :app )
85
+ index = Mix.Dep . __record__ ( :index , :app )
86
86
Enum . each apps , fn ( app ) ->
87
87
unless List . keyfind ( deps , app , index ) do
88
88
Mix . shell . info "unknown dependency #{ app } for env #{ Mix . env } "
You can’t perform that action at this time.
0 commit comments