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: github.rs
    path of file: ./repos/sn0int/sn0int-registry/src
    
    the code of the file until where you have to start completion: use serde::Deserialize;
use sn0int_registry::errors::*;

pub fn get_username(oauth_token: &str) -> Result<String> {
    let client = reqwest::Client::new();
    let mut resp = client.get("https://api.github.com/user")
        .header("Authorization", format!("token {}", oauth_
    
pub fn get_username(oauth_token: &str) -> Result<String> {
    let client = reqwest::Client::new();
    let mut resp = client.get("https://api.github.com/user")
        .header("Authorization", format!("token {}", oauth_token))
        .header("User-Agent", "sn0int-registry")
        .send()
        .context("Failed to check access_token")?
        .error_for_status()
        .context("Github returned http error")?;

    let data = resp.json::<GithubUser>()
        .context("Failed to deserialize github reply")?;

    Ok(data.login)
}