You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lib.rs
    path of file: ./repos/joystream/runtime-modules/referendum/src
    
    the code of the file until where you have to start completion: //! # Referendum module
//! General voting engine module for the the Joystream platform. Component of the council frame_system.
//!
//! ## Overview
//!
//! Referendum is an abstr
    
    fn end_reveal_period(stage_data: ReferendumStageRevealingOf<T, I>) {
        // conclude referendum
        let winners = Mutations::<T, I>::conclude_referendum(stage_data);

        // let runtime know about referendum results
        T::process_results(&winners);

        // emit event
        Self::deposit_event(RawEvent::ReferendumFinished(winners));
    }