Fix build issue
This commit is contained in:
@@ -186,7 +186,7 @@ impl CommitManager {
|
|||||||
Ok(o) => {
|
Ok(o) => {
|
||||||
println!("Success");
|
println!("Success");
|
||||||
let mut filename = String::from("audio");
|
let mut filename = String::from("audio");
|
||||||
filename += icarus_models::constants::WAV_EXTENSION;
|
filename += icarus_models::constants::WAVEXTENSION;
|
||||||
let data = o.as_bytes();
|
let data = o.as_bytes();
|
||||||
let mut file = std::fs::File::create(filename).expect("Failed to save");
|
let mut file = std::fs::File::create(filename).expect("Failed to save");
|
||||||
file.write_all(&data).expect("ff");
|
file.write_all(&data).expect("ff");
|
||||||
|
|||||||
@@ -119,9 +119,9 @@ impl Upload {
|
|||||||
let cover = reqwest::multipart::Part::bytes(cover_raw_data).headers(headers_i);
|
let cover = reqwest::multipart::Part::bytes(cover_raw_data).headers(headers_i);
|
||||||
|
|
||||||
let mut song_filename = String::from("audio");
|
let mut song_filename = String::from("audio");
|
||||||
song_filename += icarus_models::constants::WAV_EXTENSION;
|
song_filename += icarus_models::constants::WAVEXTENSION;
|
||||||
let mut cover_filename = String::from("cover");
|
let mut cover_filename = String::from("cover");
|
||||||
cover_filename += icarus_models::constants::JPG_EXTENSION;
|
cover_filename += icarus_models::constants::JPGEXTENSION;
|
||||||
|
|
||||||
return reqwest::multipart::Form::new()
|
return reqwest::multipart::Form::new()
|
||||||
.part("cover", cover.file_name(cover_filename))
|
.part("cover", cover.file_name(cover_filename))
|
||||||
@@ -137,9 +137,9 @@ impl Upload {
|
|||||||
println!("\n{}\n", song_detail);
|
println!("\n{}\n", song_detail);
|
||||||
|
|
||||||
let mut song_filename = String::from("audio");
|
let mut song_filename = String::from("audio");
|
||||||
song_filename += icarus_models::constants::WAV_EXTENSION;
|
song_filename += icarus_models::constants::WAVEXTENSION;
|
||||||
let mut cover_filename = String::from("cover");
|
let mut cover_filename = String::from("cover");
|
||||||
cover_filename += icarus_models::constants::JPG_EXTENSION;
|
cover_filename += icarus_models::constants::JPGEXTENSION;
|
||||||
|
|
||||||
let form = reqwest::multipart::Form::new()
|
let form = reqwest::multipart::Form::new()
|
||||||
.part(
|
.part(
|
||||||
|
|||||||
Reference in New Issue
Block a user