Skip to content

Commit

Permalink
enforce use FutureExt as _
Browse files Browse the repository at this point in the history
  • Loading branch information
ma2bd committed Jun 16, 2024
1 parent 93d44dd commit 74db9e1
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion examples/counter/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl Contract for CounterContract {

#[cfg(test)]
mod tests {
use futures::FutureExt;
use futures::FutureExt as _;
use linera_sdk::{
util::BlockingWait,
views::{View, ViewStorageContext},
Expand Down
2 changes: 1 addition & 1 deletion examples/counter/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl QueryRoot {
#[cfg(test)]
mod tests {
use async_graphql::{Request, Response, Value};
use futures::FutureExt;
use futures::FutureExt as _;
use linera_sdk::{
util::BlockingWait,
views::{View, ViewStorageContext},
Expand Down
2 changes: 1 addition & 1 deletion linera-core/src/chain_worker/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::{
sync::Arc,
};

use futures::{future, FutureExt};
use futures::{future, FutureExt as _};
use linera_base::{
crypto::CryptoHash,
data_types::{ArithmeticError, BlockHeight, HashedBlob},
Expand Down
2 changes: 1 addition & 1 deletion linera-core/src/join_set_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use std::{
task::{Context, Poll},
};

use futures::FutureExt;
use futures::FutureExt as _;
use tokio::{
sync::oneshot,
task::{AbortHandle, JoinSet},
Expand Down
2 changes: 1 addition & 1 deletion linera-rpc/src/grpc/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use std::{
use futures::{
channel::{mpsc, mpsc::Receiver},
future::BoxFuture,
FutureExt, StreamExt,
FutureExt as _, StreamExt,
};
use linera_base::identifiers::ChainId;
use linera_core::{
Expand Down
2 changes: 1 addition & 1 deletion linera-sdk/src/test/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use std::sync::{
};

use dashmap::DashMap;
use futures::FutureExt;
use futures::FutureExt as _;
use linera_base::{
crypto::KeyPair,
data_types::Timestamp,
Expand Down
2 changes: 1 addition & 1 deletion linera-sdk/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ where
mod tests {
use std::task::{Context, Poll};

use futures::{future::poll_fn, task::noop_waker, FutureExt};
use futures::{future::poll_fn, task::noop_waker, FutureExt as _};

use super::{yield_once, BlockingWait};

Expand Down
2 changes: 1 addition & 1 deletion linera-sdk/src/views/mock_key_value_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use std::{
},
};

use futures::FutureExt;
use futures::FutureExt as _;
use linera_views::{
batch::Batch,
common::{ReadableKeyValueStore, WritableKeyValueStore},
Expand Down
2 changes: 1 addition & 1 deletion linera-service/src/grpc_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use std::{

use anyhow::Result;
use async_trait::async_trait;
use futures::{future::BoxFuture, FutureExt};
use futures::{future::BoxFuture, FutureExt as _};
use linera_base::identifiers::ChainId;
use linera_core::{notifier::Notifier, JoinSetExt as _};
use linera_rpc::{
Expand Down
2 changes: 1 addition & 1 deletion linera-service/src/linera/client_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use std::{env, iter, num::NonZeroU16, path::PathBuf, time::Duration};

use chrono::{DateTime, Utc};
use futures::FutureExt;
use futures::FutureExt as _;
use linera_base::{
crypto::PublicKey,
data_types::{Amount, ApplicationPermissions, TimeDelta},
Expand Down
2 changes: 1 addition & 1 deletion linera-service/src/linera/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use chrono::Utc;
use client_context::ClientContext;
use client_options::ClientOptions;
use colored::Colorize;
use futures::{lock::Mutex, FutureExt, StreamExt};
use futures::{lock::Mutex, FutureExt as _, StreamExt};
use linera_base::{
crypto::{CryptoHash, CryptoRng, PublicKey},
data_types::{ApplicationPermissions, Timestamp},
Expand Down
2 changes: 1 addition & 1 deletion linera-service/src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::{net::SocketAddr, path::PathBuf, time::Duration};

use anyhow::{bail, Result};
use async_trait::async_trait;
use futures::{FutureExt, SinkExt, StreamExt};
use futures::{FutureExt as _, SinkExt, StreamExt};
use linera_core::{node::NodeError, JoinSetExt as _};
use linera_rpc::{
config::{
Expand Down
2 changes: 1 addition & 1 deletion linera-service/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::{path::PathBuf, time::Duration};

use anyhow::bail;
use async_trait::async_trait;
use futures::{stream::FuturesUnordered, FutureExt, StreamExt, TryFutureExt};
use futures::{stream::FuturesUnordered, FutureExt as _, StreamExt, TryFutureExt as _};
use linera_base::crypto::{CryptoRng, KeyPair};
use linera_core::{worker::WorkerState, JoinSetExt as _};
use linera_execution::{committee::ValidatorName, WasmRuntime, WithWasmDefault};
Expand Down
2 changes: 1 addition & 1 deletion linera-service/src/unit_tests/chain_listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use std::{collections::BTreeMap, sync::Arc};

use async_trait::async_trait;
use futures::{lock::Mutex, FutureExt};
use futures::{lock::Mutex, FutureExt as _};
use linera_base::{
crypto::{KeyPair, PublicKey},
data_types::{Amount, BlockHeight, TimeDelta, Timestamp},
Expand Down
2 changes: 1 addition & 1 deletion linera-storage/src/unit_tests/chain_guards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use std::{
time::Duration,
};

use futures::FutureExt;
use futures::FutureExt as _;
use linera_base::identifiers::ChainId;
use tokio::{sync::Barrier, time::sleep};

Expand Down
2 changes: 1 addition & 1 deletion linera-views/src/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use std::{collections::BTreeMap, fmt::Debug, sync::Arc};

use async_lock::{Mutex, MutexGuardArc, RwLock};
use futures::FutureExt;
use futures::FutureExt as _;
use thiserror::Error;

use crate::{
Expand Down
2 changes: 1 addition & 1 deletion linera-views/src/scylla_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use std::{ops::Deref, sync::Arc};

use async_lock::{Semaphore, SemaphoreGuard};
use async_trait::async_trait;
use futures::{future::join_all, FutureExt, StreamExt};
use futures::{future::join_all, FutureExt as _, StreamExt};
use linera_base::ensure;
use scylla::{
frame::request::batch::BatchType,
Expand Down
2 changes: 1 addition & 1 deletion linera-views/src/value_splitting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use std::fmt::Debug;

use futures::FutureExt;
use futures::FutureExt as _;
use linera_base::ensure;
use thiserror::Error;

Expand Down

0 comments on commit 74db9e1

Please sign in to comment.