From af5593949118397df0569b1aeb49884c34bf0286 Mon Sep 17 00:00:00 2001 From: Florent FAYOLLE Date: Mon, 2 Jan 2017 18:54:21 +0100 Subject: [PATCH] Remove useless call to map() in constellation.rs --- components/constellation/constellation.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/constellation/constellation.rs b/components/constellation/constellation.rs index ba14a9c8225..87c555ac9aa 100644 --- a/components/constellation/constellation.rs +++ b/components/constellation/constellation.rs @@ -1735,12 +1735,10 @@ impl Constellation let frame_id = frame_id.unwrap_or(self.root_frame_id); let current_pipeline_id = self.frames.get(&frame_id) .map(|frame| frame.current.pipeline_id); - let current_pipeline_id_loaded = current_pipeline_id - .map(|id| id); let pipeline_id_loaded = self.pending_frames.iter().rev() .find(|x| x.old_pipeline_id == current_pipeline_id) .map(|x| x.new_pipeline_id) - .or(current_pipeline_id_loaded); + .or(current_pipeline_id); if let Err(e) = resp_chan.send(pipeline_id_loaded) { warn!("Failed get_pipeline response ({}).", e); }