Skip to content

Commit

Permalink
remove redundant closures
Browse files Browse the repository at this point in the history
  • Loading branch information
gerwin3 committed Aug 8, 2023
1 parent 53c432f commit b91a1b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/async-tensorrt/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl Builder {
///
/// [TensorRT documentation](https://docs.nvidia.com/deeplearning/tensorrt/api/c_api/namespacenvinfer1_1_1anonymous__namespace_02_nv_infer_8h_03.html)
pub async fn new() -> Self {
let inner = Future::new(|| InnerBuilder::new()).await;
let inner = Future::new(InnerBuilder::new).await;
Builder { inner }
}

Expand Down
2 changes: 1 addition & 1 deletion crates/async-tensorrt/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub struct Runtime {
impl Runtime {
/// Create a new [`Runtime`].
pub async fn new() -> Self {
let inner = Future::new(|| InnerRuntime::new()).await;
let inner = Future::new(InnerRuntime::new).await;
Self { inner }
}

Expand Down

0 comments on commit b91a1b3

Please sign in to comment.