Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/97378-1.sh: fixed with no errors #1290

Merged
merged 1 commit into from
Jun 8, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jun 8, 2022

Issue: rust-lang/rust#97378

#!/bin/sh

rustc --edition=2021 - << EOF

pub enum Request {
    Resolve {
        url: String,
    },
}

pub async fn handle_event(
    event: Request,
)  {
    async move {
        let Request::Resolve { url } = event;
    }.await;
}

pub fn main() {}

EOF
=== stdout ===
=== stderr ===
warning: unused variable: `url`
  --> <anon>:12:32
   |
12 |         let Request::Resolve { url } = event;
   |                                ^^^ help: try ignoring the field: `url: _`
   |
   = note: `#[warn(unused_variables)]` on by default

warning: 1 warning emitted

==============

=== stdout ===
=== stderr ===
warning: unused variable: `url`
  --> <anon>:12:32
   |
12 |         let Request::Resolve { url } = event;
   |                                ^^^ help: try ignoring the field: `url: _`
   |
   = note: `#[warn(unused_variables)]` on by default

warning: 1 warning emitted

==============
@JohnTitor JohnTitor merged commit 7b104e6 into master Jun 8, 2022
@JohnTitor JohnTitor deleted the autofix/ices/97378-1.sh branch June 8, 2022 10:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants