Skip to content

Commit fd0b27f

Browse files
committed
chore: updates for Rust 1.72.0
Clippy was complaining about 3 new things in 1.72.0. Two new lints and one updated one. When `futures-core` was added as an explicit dependency on `console-api` in #453, it was only added to the `console-api` Cargo.toml file. It wasn't added to the Cargo.lock file shared by the workspace. Since Rust 1.72.0, Cargo is adding this dependency to Cargo.lock locally, so it makes sense to check in that change.
1 parent 2ce3d81 commit fd0b27f

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tokio-console/src/state/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl State {
9393
mut self,
9494
linters: impl IntoIterator<Item = Linter<Task>>,
9595
) -> Self {
96-
self.tasks_state.linters.extend(linters.into_iter());
96+
self.tasks_state.linters.extend(linters);
9797
self
9898
}
9999

@@ -505,7 +505,7 @@ fn truncate_registry_path(s: String) -> String {
505505

506506
static REGEX: OnceCell<Regex> = OnceCell::new();
507507
let regex = REGEX.get_or_init(|| {
508-
Regex::new(r#".*/\.cargo(/registry/src/[^/]*/|/git/checkouts/)"#)
508+
Regex::new(r".*/\.cargo(/registry/src/[^/]*/|/git/checkouts/)")
509509
.expect("failed to compile regex")
510510
});
511511

tokio-console/src/state/store.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,7 @@ impl<T> fmt::Debug for Ids<T> {
191191
impl<T> Clone for Id<T> {
192192
#[inline]
193193
fn clone(&self) -> Self {
194-
Self {
195-
id: self.id,
196-
_ty: PhantomData,
197-
}
194+
*self
198195
}
199196
}
200197

0 commit comments

Comments
 (0)