Skip to content

Remove some unused code, annotations.#4476

Merged
afck merged 1 commit intolinera-io:mainfrom
afck:unused
Sep 4, 2025
Merged

Remove some unused code, annotations.#4476
afck merged 1 commit intolinera-io:mainfrom
afck:unused

Conversation

@afck
Copy link
Contributor

@afck afck commented Sep 4, 2025

Motivation

In test_utils we #![allow(unused_imports)] because "items are only used by some tests" and "Rust will complain". That doesn't seem to be true, and if it were I don't see why the affected test shouldn't just import the items in question directly.

Proposal

Remove the attribute and the unused imports.

Also, remove or restrict some similar attributes in other places.

Test Plan

CI

Release Plan

  • Nothing to do / These changes follow the usual release cycle.

Links

@afck afck requested review from bart-linera, deuszx and ma2bd September 4, 2025 08:37
Copy link
Contributor

@deuszx deuszx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If CI happy...

@afck afck enabled auto-merge September 4, 2025 08:54
@afck afck added this pull request to the merge queue Sep 4, 2025
Merged via the queue into linera-io:main with commit 8a47278 Sep 4, 2025
28 checks passed
@afck afck deleted the unused branch September 4, 2025 09:39
afck added a commit to afck/linera-protocol that referenced this pull request Sep 4, 2025
## Motivation

In `test_utils` we `#![allow(unused_imports)]` because "items are only
used by some tests" and "Rust will complain". That doesn't seem to be
true, and if it were I don't see why the affected test shouldn't just
import the items in question directly.

## Proposal

Remove the attribute and the unused imports.

Also, remove or restrict some similar attributes in other places.

## Test Plan

CI

## Release Plan

- Nothing to do / These changes follow the usual release cycle.

## Links

- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
afck added a commit to afck/linera-protocol that referenced this pull request Sep 4, 2025
## Motivation

In `test_utils` we `#![allow(unused_imports)]` because "items are only
used by some tests" and "Rust will complain". That doesn't seem to be
true, and if it were I don't see why the affected test shouldn't just
import the items in question directly.

## Proposal

Remove the attribute and the unused imports.

Also, remove or restrict some similar attributes in other places.

## Test Plan

CI

## Release Plan

- Nothing to do / These changes follow the usual release cycle.

## Links

- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
@afck afck mentioned this pull request Sep 4, 2025
ma2bd pushed a commit that referenced this pull request Sep 5, 2025
## Motivation

In `test_utils` we `#![allow(unused_imports)]` because "items are only
used by some tests" and "Rust will complain". That doesn't seem to be
true, and if it were I don't see why the affected test shouldn't just
import the items in question directly.

## Proposal

Remove the attribute and the unused imports.

Also, remove or restrict some similar attributes in other places.

## Test Plan

CI

## Release Plan

- Nothing to do / These changes follow the usual release cycle.

## Links

- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
ma2bd pushed a commit that referenced this pull request Sep 5, 2025
## Motivation

In `test_utils` we `#![allow(unused_imports)]` because "items are only
used by some tests" and "Rust will complain". That doesn't seem to be
true, and if it were I don't see why the affected test shouldn't just
import the items in question directly.

## Proposal

Remove the attribute and the unused imports.

Also, remove or restrict some similar attributes in other places.

## Test Plan

CI

## Release Plan

- Nothing to do / These changes follow the usual release cycle.

## Links

- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
ma2bd added a commit to ma2bd/linera-protocol that referenced this pull request Sep 6, 2025
ma2bd added a commit to ma2bd/linera-protocol that referenced this pull request Sep 6, 2025
ma2bd added a commit to ma2bd/linera-protocol that referenced this pull request Sep 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants