Skip to content

Commit 5102b4a

Browse files
committed
fix CI and prepare a release
1 parent e4b159b commit 5102b4a

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

.github/workflows/libloading.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
- run: rustup install ${{ matrix.rust_toolchain }} --profile=minimal
2424
- run: rustup default ${{ matrix.rust_toolchain }}
2525
- run: rustup component add clippy
26+
- run: cargo update -p libc --precise 0.2.155
27+
if: ${{ matrix.rust_toolchain == "1.56.0" }}
2628
- run: cargo clippy
2729
- run: cargo test -- --nocapture
2830
- run: cargo test --release -- --nocapture
@@ -77,7 +79,7 @@ jobs:
7779
# - x86_64-unknown-netbsd
7880
- x86_64-unknown-openbsd
7981
- x86_64-unknown-redox
80-
- x86_64-fuchsia
82+
- x86_64-unknown-fuchsia
8183
- wasm32-unknown-unknown
8284
timeout-minutes: 20
8385
steps:

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "libloading"
33
# When bumping
44
# * Don’t forget to add an entry to `src/changelog.rs`
55
# * If bumping to an incompatible version, adjust the documentation in `src/lib.rs`
6-
version = "0.8.5"
6+
version = "0.8.6"
77
authors = ["Simonas Kazlauskas <[email protected]>"]
88
license = "ISC"
99
repository = "https://github.com/nagisa/rust_libloading/"
@@ -13,12 +13,13 @@ description = "Bindings around the platform's dynamic library loading primitives
1313
keywords = ["dlopen", "load", "shared", "dylib"]
1414
categories = ["api-bindings"]
1515
rust-version = "1.56.0"
16+
edition = "2015"
1617

1718
[target.'cfg(windows)'.dependencies.windows-targets]
1819
version = ">=0.48, <0.53"
1920

2021
[target.'cfg(windows)'.dev-dependencies.windows-sys]
21-
version = "0.52"
22+
version = ">=0.52,<0.59"
2223
features = ["Win32_Foundation"]
2324

2425
[target.'cfg(unix)'.dependencies.cfg-if]

src/safe.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ impl Library {
145145
/// **awesome_variable = 42.0;
146146
/// };
147147
/// ```
148-
pub unsafe fn get<'lib, T>(&'lib self, symbol: &[u8]) -> Result<Symbol<'lib, T>, Error> {
148+
pub unsafe fn get<T>(&self, symbol: &[u8]) -> Result<Symbol<T>, Error> {
149149
self.0.get(symbol).map(|from| Symbol::from_raw(from, self))
150150
}
151151

@@ -302,19 +302,19 @@ impl<'lib, T> Clone for Symbol<'lib, T> {
302302
}
303303

304304
// FIXME: implement FnOnce for callable stuff instead.
305-
impl<'lib, T> ops::Deref for Symbol<'lib, T> {
305+
impl<T> ops::Deref for Symbol<'_, T> {
306306
type Target = T;
307307
fn deref(&self) -> &T {
308308
ops::Deref::deref(&self.inner)
309309
}
310310
}
311311

312-
impl<'lib, T> fmt::Debug for Symbol<'lib, T> {
312+
impl<T> fmt::Debug for Symbol<'_, T> {
313313
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
314314
self.inner.fmt(f)
315315
}
316316
}
317317

318-
unsafe impl<'lib, T: Send> Send for Symbol<'lib, T> {}
319-
unsafe impl<'lib, T: Sync> Sync for Symbol<'lib, T> {}
318+
unsafe impl<T: Send> Send for Symbol<'_, T> {}
319+
unsafe impl<T: Sync> Sync for Symbol<'_, T> {}
320320

0 commit comments

Comments
 (0)