Skip to content

Commit

Permalink
Compatibility fixup for v1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Liozou committed Apr 23, 2024
1 parent 21e4f69 commit f714360
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
export PeriodicDistance2
using LinearAlgebra: mul!

@static if VERSION < v"1.7-"
Base.replace(x::String, p1::Pair, p2::Pair...) = replace(replace(x, p1), p2...)
end

@static if VERSION < v"1.8-"
# copy-pasted from the implementation of @lazy_str in Base
macro lazy_str(text)
Expand Down

0 comments on commit f714360

Please sign in to comment.