Skip to content

Commit 546a17f

Browse files
bmc-msftdemoray
andauthored
Update storage queue to use the new Pageable methods (#854)
Co-authored-by: Brian Caswell <[email protected]>
1 parent f50dfa8 commit 546a17f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk/storage_queues/src/operations/list_queues.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl ListQueuesBuilder {
5555

5656
if let Some(continuation) = continuation {
5757
url.query_pairs_mut()
58-
.append_pair("marker", &continuation.into_raw());
58+
.append_pair("marker", &continuation.as_string());
5959
}
6060

6161
this.max_results.append_to_url_query(&mut url);
@@ -99,8 +99,8 @@ pub struct ListQueuesResponse {
9999
}
100100

101101
impl Continuable for ListQueuesResponse {
102-
fn continuation(&self) -> Option<String> {
103-
self.next_marker.clone().map(|x| x.as_str().to_owned())
102+
fn continuation(&self) -> Option<Continuation> {
103+
self.next_marker.clone().map(Continuation::from)
104104
}
105105
}
106106

0 commit comments

Comments
 (0)