src/config/remote.rs: do not serialize empty option

This commit is contained in:
Dietmar Maurer 2020-01-31 09:09:24 +01:00
parent c43b36bcb6
commit b8a192e3b0

View File

@ -49,6 +49,7 @@ pub struct Remote {
pub host: String,
pub userid: String,
pub password: String,
#[serde(skip_serializing_if="Option::is_none")]
pub fingerprint: Option<String>,
}