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: download.rs
    path of file: ./repos/probe-rs/probe-rs/src/bin/probe-rs/cmd
    
    the code of the file until where you have to start completion: use std::path::Path;

use probe_rs::probe::list::Lister;

use crate::util::common_options::BinaryDownloadOptions;
use crate::util::common_options::ProbeOptions;
use crate::util::flash::build_loader;
use crate::util::flash::run_flash_download;
use crate::Format
    
    pub fn run(self, lister: &Lister) -> anyhow::Result<()> {
        let (mut session, probe_options) = self.probe_options.simple_attach(lister)?;

        let loader = build_loader(&mut session, &self.path, self.format_options)?;
        run_flash_download(
            &mut session,
            Path::new(&self.path),
            &self.download_options,
            &probe_options,
            loader,
            self.chip_erase,
        )?;

        Ok(())
    }