From 7bbc1bbc195a216aaa3e8f512397b09f33e88451 Mon Sep 17 00:00:00 2001 From: softprops Date: Sun, 25 Aug 2019 18:38:07 -0400 Subject: [PATCH] import mime::Mime --- src/github.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/github.rs b/src/github.rs index 944516d..b1185ac 100644 --- a/src/github.rs +++ b/src/github.rs @@ -1,3 +1,4 @@ +use mime::Mime; use reqwest::{Body, Client, StatusCode}; use serde::{Deserialize, Serialize}; use std::{error::Error, fs::File}; @@ -34,7 +35,7 @@ pub trait AssetUploader = File> { github_token: &str, github_repo: &str, release_id: usize, - mime: mime::Mime, + mime: Mime, asset: A, ) -> Result<(), Box>; }