From ff74d160c077c931ada7a194aa39237edbdd4a07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20G=C3=B6ttgens?= Date: Mon, 18 Sep 2023 17:16:38 +0200 Subject: [PATCH] Streamline uses of Compat.jl --- src/Aqua.jl | 6 ++---- src/pkg/Versions.jl | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Aqua.jl b/src/Aqua.jl index 2f203016..84d67c4b 100644 --- a/src/Aqua.jl +++ b/src/Aqua.jl @@ -4,10 +4,8 @@ using Base: PkgId, UUID using Pkg: Pkg, TOML using Test -try - findnext('a', "a", 1) -catch - import Compat +if VERSION < v"1.3.0-DEV.349" + using Compat: findfirst end include("pkg/Versions.jl") diff --git a/src/pkg/Versions.jl b/src/pkg/Versions.jl index 04cd7b53..ac9623fc 100644 --- a/src/pkg/Versions.jl +++ b/src/pkg/Versions.jl @@ -4,7 +4,7 @@ module Versions export VersionBound, VersionRange, VersionSpec, semver_spec, isjoinable -if !@isdefined(isnothing) +if VERSION < v"1.1.0-DEV.472" using Compat: isnothing end