Skip to content

Commit f49a0ae

Browse files
authored
Merge pull request #2965 from rotu/zygomorphic-puma
Remove obsolete compatibility for Rust<1.80
2 parents 8f514ce + 9456517 commit f49a0ae

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ hostname = ["dep:hostname"]
2424
tls = ["dep:native-tls"]
2525
http = ["dep:warp", "dep:reqwest"]
2626
crypto-full = []
27-
"rust-version-1.80" = []
2827

2928
[build-dependencies]
3029
indexmap = "2.3.0"

src/machine/mod.rs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -118,32 +118,6 @@ fn current_dir() -> PathBuf {
118118
}
119119
}
120120

121-
#[cfg(not(feature = "rust-version-1.80"))]
122-
mod libraries {
123-
use indexmap::IndexMap;
124-
use std::sync::OnceLock;
125-
126-
fn libraries() -> &'static IndexMap<&'static str, &'static str> {
127-
static LIBRARIES: OnceLock<IndexMap<&'static str, &'static str>> = OnceLock::new();
128-
LIBRARIES.get_or_init(|| {
129-
let mut m = IndexMap::new();
130-
131-
include!(concat!(env!("OUT_DIR"), "/libraries.rs"));
132-
133-
m
134-
})
135-
}
136-
137-
pub(crate) fn contains(name: &str) -> bool {
138-
libraries().contains_key(name)
139-
}
140-
141-
pub(crate) fn get(name: &str) -> Option<&'static str> {
142-
libraries().get(name).copied()
143-
}
144-
}
145-
146-
#[cfg(feature = "rust-version-1.80")]
147121
mod libraries {
148122
use indexmap::IndexMap;
149123
use std::sync::LazyLock;

0 commit comments

Comments
 (0)