Skip to content

Commit

Permalink
remove box pin where Pageable is returned (#680)
Browse files Browse the repository at this point in the history
  • Loading branch information
roeap authored Mar 9, 2022
1 parent 5be8146 commit 027f111
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions sdk/storage_datalake/src/operations/file_systems_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ use azure_core::{
};
use azure_storage::core::headers::CommonStorageResponseHeaders;
use std::convert::TryInto;
use std::pin::Pin;

type ListFileSystems = Pin<Box<Pageable<ListFileSystemsResponse, azure_core::Error>>>;
type ListFileSystems = Pageable<ListFileSystemsResponse, azure_core::Error>;

#[derive(Debug, Clone)]
pub struct ListFileSystemsBuilder {
Expand Down Expand Up @@ -79,7 +78,7 @@ impl ListFileSystemsBuilder {
}
};

Box::pin(Pageable::new(make_request))
Pageable::new(make_request)
}
}

Expand Down
5 changes: 2 additions & 3 deletions sdk/storage_datalake/src/operations/path_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ use azure_core::{
};
use azure_storage::core::headers::CommonStorageResponseHeaders;
use std::convert::TryInto;
use std::pin::Pin;

/// A future of a delete file response
type ListPaths = Pin<Box<Pageable<ListPathsResponse, azure_core::Error>>>;
type ListPaths = Pageable<ListPathsResponse, azure_core::Error>;

#[derive(Debug, Clone)]
pub struct ListPathsBuilder {
Expand Down Expand Up @@ -92,7 +91,7 @@ impl ListPathsBuilder {
}
};

Box::pin(Pageable::new(make_request))
Pageable::new(make_request)
}
}

Expand Down

0 comments on commit 027f111

Please sign in to comment.