fix: to string

This commit is contained in:
Kingtous
2022-05-13 09:30:52 +08:00
parent b3f523f65e
commit 77bb821ecf
5 changed files with 38 additions and 32 deletions

View File

@@ -157,11 +157,9 @@ pub struct PeerInfoSerde {
#[derive(Debug, Default, Serialize, Deserialize, Clone)]
pub struct TransferSerde {
#[serde(default)]
pub write_jobs: Vec<TransferJobMeta>,
pub write_jobs: Vec<String>,
#[serde(default)]
pub read_jobs: Vec<TransferJobMeta>,
#[serde(default)]
pub remove_jobs: Vec<RemoveJobMeta>,
pub read_jobs: Vec<String>,
}
fn patch(path: PathBuf) -> PathBuf {