Address dead code violations in SQS lambda merging example
This is not ideal, in that this doesn't make for a complete
functioning example, but it is the minimum change to allow compilation
to proceed while denying dead code elsewhere.
@@ -87,10 +87,12 @@ where
pub struct Subgraph {}
impl Subgraph {
+ #[allow(dead_code)] // Ultimately need an implementation for this example
fn merge(&mut self, _other: &Self) {
unimplemented!()
}
+ #[allow(dead_code)] // Ultimately need an implementation for this example
fn into_bytes(self) -> Vec<u8> {
unimplemented!()
}
@@ -108,9 +110,9 @@ impl CompletionEventSerializer for SubgraphSerializer {
&mut self,
completed_events: &[Self::CompletedEvent],
) -> Result<Vec<Self::Output>, Self::Error> {
- let mut subgraph = Subgraph {};
- for sg in completed_events {
- subgraph.merge(sg);
+ let mut _subgraph = Subgraph {};
+ for _sg in completed_events {
+ // subgraph.merge(sg);
}
// subgraph.into_bytes()
