mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-23 23:23:50 +03:00
Update package manifest use of remote
This commit is contained in:
parent
ca9163a9c5
commit
34fa444a06
@ -37,12 +37,12 @@ pub struct Package {
|
||||
pub version: String,
|
||||
pub description: Option<String>,
|
||||
pub license: Option<String>,
|
||||
pub remote: Option<Remote>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct Manifest {
|
||||
pub package: Package,
|
||||
pub remote: Option<Remote>,
|
||||
}
|
||||
|
||||
impl Manifest {
|
||||
@ -53,8 +53,8 @@ impl Manifest {
|
||||
version: "0.1.0".to_owned(),
|
||||
description: None,
|
||||
license: None,
|
||||
remote: None,
|
||||
},
|
||||
remote: None,
|
||||
}
|
||||
}
|
||||
|
||||
@ -83,7 +83,7 @@ impl Manifest {
|
||||
}
|
||||
|
||||
pub fn get_package_remote(&self) -> Option<Remote> {
|
||||
self.package.remote.clone()
|
||||
self.remote.clone()
|
||||
}
|
||||
|
||||
pub fn write_to(self, path: &PathBuf) -> Result<(), ManifestError> {
|
||||
|
Loading…
Reference in New Issue
Block a user