Skip to content

Commit c7a4690

Browse files
authored
Fix some warnings on nightly Rust (#11204)
Shuffle some parens around to work around rust-lang/rust#143653.
1 parent 0854775 commit c7a4690

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/actions/install-rust/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ runs:
2828
elif [ "${{ inputs.toolchain }}" = "msrv" ]; then
2929
echo "version=1.$msrv.0" >> "$GITHUB_OUTPUT"
3030
elif [ "${{ inputs.toolchain }}" = "wasmtime-ci-pinned-nightly" ]; then
31-
echo "version=nightly-2025-06-26" >> "$GITHUB_OUTPUT"
31+
echo "version=nightly-2025-07-08" >> "$GITHUB_OUTPUT"
3232
else
3333
echo "version=${{ inputs.toolchain }}" >> "$GITHUB_OUTPUT"
3434
fi

crates/wasmtime/src/runtime/store.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ pub struct StoreInner<T: 'static> {
240240
}
241241

242242
enum ResourceLimiterInner<T> {
243-
Sync(Box<dyn FnMut(&mut T) -> &mut (dyn crate::ResourceLimiter) + Send + Sync>),
243+
Sync(Box<dyn (FnMut(&mut T) -> &mut dyn crate::ResourceLimiter) + Send + Sync>),
244244
#[cfg(feature = "async")]
245-
Async(Box<dyn FnMut(&mut T) -> &mut (dyn crate::ResourceLimiterAsync) + Send + Sync>),
245+
Async(Box<dyn (FnMut(&mut T) -> &mut dyn crate::ResourceLimiterAsync) + Send + Sync>),
246246
}
247247

248248
enum CallHookInner<T: 'static> {
@@ -753,7 +753,7 @@ impl<T> Store<T> {
753753
/// [`ResourceLimiter`]: crate::ResourceLimiter
754754
pub fn limiter(
755755
&mut self,
756-
mut limiter: impl FnMut(&mut T) -> &mut (dyn crate::ResourceLimiter) + Send + Sync + 'static,
756+
mut limiter: impl (FnMut(&mut T) -> &mut dyn crate::ResourceLimiter) + Send + Sync + 'static,
757757
) {
758758
// Apply the limits on instances, tables, and memory given by the limiter:
759759
let inner = &mut self.inner;

crates/wasmtime/src/runtime/store/async_.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl<T> Store<T> {
4040
/// [`Config::async_support`](crate::Config::async_support).
4141
pub fn limiter_async(
4242
&mut self,
43-
mut limiter: impl FnMut(&mut T) -> &mut (dyn crate::ResourceLimiterAsync)
43+
mut limiter: impl (FnMut(&mut T) -> &mut dyn crate::ResourceLimiterAsync)
4444
+ Send
4545
+ Sync
4646
+ 'static,

0 commit comments

Comments
 (0)