Skip to content

Commit

Permalink
Align clippy features between CI jobs; address lifetimes in serde
Browse files Browse the repository at this point in the history
  • Loading branch information
Bromeon committed Dec 8, 2024
1 parent 2a93eb0 commit 246339b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/full-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

env:
# Applies to all 'register-docs' features across crates.
CLIPPY_FEATURES: '--features register-docs'
CLIPPY_FEATURES: '--features register-docs,godot/experimental-godot-api,godot/serde'
TEST_FEATURES: ''
RETRY: ${{ github.workspace }}/.github/other/retry.sh

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/minimal-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:

env:
# Applies to all 'register-docs' features across crates.
CLIPPY_FEATURES: '--features register-docs'
CLIPPY_FEATURES: '--features register-docs,godot/experimental-godot-api,godot/serde'
TEST_FEATURES: ''
# GDEXT_CRATE_ARGS: '-p godot-codegen -p godot-ffi -p godot-core -p godot-macros -p godot'
RETRY: ${{ github.workspace }}/.github/other/retry.sh
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ on:
- 'v0.[0-9]+.[0-9]+'

env:
# Note: used for test and clippy, not for publish
GDEXT_FEATURES: "--features godot/experimental-godot-api,godot/codegen-rustfmt,godot/serde"
# Note: used for test and clippy, not for publish. Test features are different from other CIs.
CLIPPY_TEST_FEATURES: "--features godot/experimental-godot-api,godot/codegen-rustfmt,godot/serde"

# Crates to publish -- important, this doesn't work when there are spaces in any of the paths!
# Keep in sync with update-version.sh
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
run: rustup update stable

- name: "Compile and run test"
run: cargo test $GDEXT_FEATURES
run: cargo test $CLIPPY_TEST_FEATURES

clippy:
runs-on: ubuntu-latest
Expand All @@ -121,7 +121,7 @@ jobs:

- name: "Check clippy"
run: |
cargo clippy --all-targets $GDEXT_FEATURES -- \
cargo clippy --all-targets $CLIPPY_TEST_FEATURES -- \
-D clippy::suspicious \
-D clippy::style \
-D clippy::complexity \
Expand Down
2 changes: 1 addition & 1 deletion godot-core/src/builtin/string/gstring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ mod serialize {
D: Deserializer<'de>,
{
struct GStringVisitor;
impl<'de> Visitor<'de> for GStringVisitor {
impl Visitor<'_> for GStringVisitor {
type Value = GString;

fn expecting(&self, formatter: &mut Formatter) -> fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion godot-core/src/builtin/string/string_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ mod serialize {
D: Deserializer<'de>,
{
struct StringNameVisitor;
impl<'de> Visitor<'de> for StringNameVisitor {
impl Visitor<'_> for StringNameVisitor {
type Value = StringName;

fn expecting(&self, formatter: &mut Formatter) -> fmt::Result {
Expand Down

0 comments on commit 246339b

Please sign in to comment.