Skip to content

Commit

Permalink
[mock-omaha-server] Fix clippy unnecessary import warning
Browse files Browse the repository at this point in the history
When using fuchsia_hyper, clippy complains about its unnecessary import
in the tests section. This change allows it to pass successfully. This
warning is triggered only when imported into the Fuchsia repository.

Bug: https://fxbug.dev/359180225
  • Loading branch information
ephemeralriggs committed Aug 19, 2024
1 parent 77014ba commit 5a0df93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mock-omaha-server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -684,11 +684,11 @@ pub async fn handle_omaha_request(
mod tests {
use super::*;
use anyhow::Context;
#[cfg(fasync)]
use fuchsia_async as fasync;
#[cfg(feature = "tokio")]
use hyper::client::HttpConnector;
use hyper::Client;
#[cfg(fasync)]
use {fuchsia_async as fasync, fuchsia_hyper};

#[cfg(fasync)]
async fn new_http_client() -> Client<fuchsia_hyper::HyperConnector> {
Expand Down

0 comments on commit 5a0df93

Please sign in to comment.