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: sync_handler.rs
    path of file: ./repos/bob/src/handlers
    
    the code of the file until where you have to start completion: use anyhow::{anyhow, Result};
use reqwest::Client;
use tokio::fs;
use tracing::info;

use crate::{config::Config, helpers::version};

use super::use_handler;

pub async fn start(client: &Client, config: Config) -> Result<()> {
    let version_sync_file_location = version::get_version_sync_file_location(&config)
        .await?
        .ok_or_else(|| anyhow!("version_sync_file_location needs to be set to use bob sync"))?;

    let version = fs::read_to_string(&version_sync_file_location).await?;
    if version.is_empty() {
        return Err(anyhow!("Sync file is empty"));
    }
    let trimmed_version = version.trim();

    if trimmed_version.contains("nightly-") {
        return Err(anyhow!("Cannot sync nightly rollbacks."));
    }

    info!(

    
pub async fn start(client: &Client, config: Config) -> Result<()> {
    let version_sync_file_location = version::get_version_sync_file_location(&config)
        .await?
        .ok_or_else(|| anyhow!("version_sync_file_location needs to be set to use bob sync"))?;

    let version = fs::read_to_string(&version_sync_file_location).await?;
    if version.is_empty() {
        return Err(anyhow!("Sync file is empty"));
    }
    let trimmed_version = version.trim();

    if trimmed_version.contains("nightly-") {
        return Err(anyhow!("Cannot sync nightly rollbacks."));
    }

    info!(
        "Using version {version} set in {}",
        version_sync_file_location
            .into_os_string()
            .into_string()
            .unwrap()
    );

    use_handler::start(
        version::parse_version_type(client, trimmed_version).await?,
        true,
        client,
        config,
    )
    .await?;

    Ok(())
}