Skip to content

Commit 96d987e

Browse files
committed
fastly: fix lifetime warning
``` error: elided lifetime has a name --> deps/rust-rdkafka/src/admin.rs:914:83 | 902 | impl<'a> NewPartitions<'a> { | -- lifetime `'a` declared here ... 914 | pub fn assign(mut self, assignment: PartitionAssignment<'a>) -> NewPartitions<'_> { | ^^ this elided lifetime gets resolved as `'a` | = note: `-D elided-named-lifetimes` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(elided_named_lifetimes)]` ```
1 parent 0b35424 commit 96d987e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/admin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ impl<'a> NewPartitions<'a> {
911911

912912
/// Sets the partition replica assignment for the new partitions. Only
913913
/// assignments for newly created replicas should be included.
914-
pub fn assign(mut self, assignment: PartitionAssignment<'a>) -> NewPartitions<'_> {
914+
pub fn assign(mut self, assignment: PartitionAssignment<'a>) -> NewPartitions<'a> {
915915
self.assignment = Some(assignment);
916916
self
917917
}

0 commit comments

Comments
 (0)