Skip to content

Fix newly added clippy warning and build failure with minimal-versions#71

Merged
taiki-e merged 3 commits into
masterfrom
taiki-e/clippy
Jul 6, 2025
Merged

Fix newly added clippy warning and build failure with minimal-versions#71
taiki-e merged 3 commits into
masterfrom
taiki-e/clippy

Conversation

@taiki-e
Copy link
Copy Markdown
Collaborator

@taiki-e taiki-e commented Jul 6, 2025

Fixes #69

taiki-e added 3 commits July 6, 2025 14:35
```
error: variables can be used directly in the `format!` string
   --> src/lib.rs:327:23
    |
327 |                 .name(format!("blocking-{}", id))
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    = note: `-D clippy::uninlined-format-args` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::uninlined_format_args)]`
help: change this to
    |
327 -                 .name(format!("blocking-{}", id))
327 +                 .name(format!("blocking-{id}"))
    |
```
```
  error[E0433]: failed to resolve: could not find `Builder` in `async_task`
     --> src/lib.rs:219:44
      |
  219 |         let (runnable, task) = async_task::Builder::new().propagate_panic(true).spawn(
      |                                            ^^^^^^^ could not find `Builder` in `async_task`
      |
  help: consider importing one of these structs
      |
  87  + use crate::thread::Builder;
      |
  87  + use std::thread::Builder;
      |
  help: if you import `Builder`, refer to it directly
      |
  219 -         let (runnable, task) = async_task::Builder::new().propagate_panic(true).spawn(
  219 +         let (runnable, task) = Builder::new().propagate_panic(true).spawn(
      |
```
@taiki-e taiki-e changed the title Fix clippy::uninlined_format_args warning Fix newly added clippy warning and build failure with minimal-versions Jul 6, 2025
@taiki-e taiki-e merged commit 8f621a9 into master Jul 6, 2025
8 checks passed
@taiki-e taiki-e deleted the taiki-e/clippy branch July 6, 2025 05:46
@taiki-e taiki-e mentioned this pull request Jul 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect semver version for async-task dependency

1 participant