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: mod.rs
    path of file: ./repos/joystream/runtime-modules/content/src/permissions
    
    the code of the file until where you have to start completion: mod curator_group;
pub use crate::errors::*;
use crate::*;
pub use codec::{Codec, Decode, Encode};
us
    
pub fn ensure_no_channel_transfers<T: Config>(channel: &Channel<T>) -> DispatchResult {
    ensure!(
        channel.transfer_status == ChannelTransferStatus::NoActiveTransfer,
        Error::<T>::InvalidChannelTransferStatus
    );

    Ok(())
}