Skip to content

Commit 17e9be5

Browse files
committed
Make clippy happy again
1 parent afe73b4 commit 17e9be5

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

.github/workflows/release.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release AIScript
33
on:
44
push:
55
tags:
6-
- "v*"
6+
- 'v*'
77

88
jobs:
99
build:
@@ -62,6 +62,7 @@ jobs:
6262
with:
6363
name: ${{ matrix.asset_name }}
6464
path: dist/${{ matrix.asset_name }}
65+
retention-days: 1
6566
if-no-files-found: error
6667

6768
release:
@@ -90,19 +91,23 @@ jobs:
9091
find . -type f -not -path "*/\.*" | grep -v "checksums.txt" | xargs -I{} shasum -a 256 {} > checksums.txt
9192
cat checksums.txt
9293
94+
- name: Prepare release files
95+
run: |
96+
mkdir -p release_files
97+
cp dist/aiscript-linux-x86_64/aiscript-linux-x86_64 release_files/
98+
cp dist/aiscript-macos-x86_64/aiscript-macos-x86_64 release_files/
99+
cp dist/aiscript-macos-arm64/aiscript-macos-arm64 release_files/
100+
cp dist/aiscript-windows-x86_64.exe/aiscript-windows-x86_64.exe release_files/
101+
cp dist/install.sh release_files/
102+
cp dist/checksums.txt release_files/
103+
93104
- name: Create release
94105
id: create_release
95106
uses: softprops/action-gh-release@v1
96107
with:
97-
files: |
98-
dist/aiscript-linux-x86_64/aiscript-linux-x86_64
99-
dist/aiscript-macos-x86_64/aiscript-macos-x86_64
100-
dist/aiscript-macos-arm64/aiscript-macos-arm64
101-
dist/aiscript-windows-x86_64.exe/aiscript-windows-x86_64.exe
102-
dist/install.sh
103-
dist/checksums.txt
108+
files: release_files/*
104109
draft: false
105110
prerelease: false
106111
generate_release_notes: true
107112
env:
108-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
113+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

aiscript-arena/src/collect.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ use crate::context::Collection;
1919
/// deriving `Collect`. A safe way of providing internal mutability in this case is to use
2020
/// [`crate::lock::Lock<T>`] and [`crate::lock::RefLock<T>`], which provides internal mutability
2121
/// while ensuring that the write barrier is always executed.
22+
/// # Safety
2223
pub unsafe trait Collect {
2324
/// As an optimization, if this type can never hold a `Gc` pointer and `trace` is unnecessary
2425
/// to call, you may implement this method and return false. The default implementation returns

aiscript-arena/src/context.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::neg_cmp_op_on_partial_ord)]
12
use alloc::{boxed::Box, vec::Vec};
23
use core::{
34
cell::{Cell, RefCell},

aiscript-arena/src/gc.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ impl<'gc, T: ?Sized + 'gc> Gc<'gc, T> {
181181
///
182182
/// Unlike `AsRef` or `Deref`, the returned reference isn't bound to the `Gc` itself, and
183183
/// will stay valid for the entirety of the current arena callback.
184+
#[allow(clippy::should_implement_trait)]
184185
#[inline]
185186
pub fn as_ref(self: Gc<'gc, T>) -> &'gc T {
186187
// SAFETY: The returned reference cannot escape the current arena callback, as `&'gc T`
@@ -258,10 +259,6 @@ impl<'gc, T: PartialEq + ?Sized + 'gc> PartialEq for Gc<'gc, T> {
258259
fn eq(&self, other: &Self) -> bool {
259260
(**self).eq(other)
260261
}
261-
262-
fn ne(&self, other: &Self) -> bool {
263-
(**self).ne(other)
264-
}
265262
}
266263

267264
impl<'gc, T: Eq + ?Sized + 'gc> Eq for Gc<'gc, T> {}

0 commit comments

Comments
 (0)