Skip to main content

write_pinned_packages

Function write_pinned_packages 

Source
pub fn write_pinned_packages(packages: &[PinnedPackage]) -> Result<(), Error>
Expand description

Saves the list of pinned packages to pinned.json.

ยงErrors

Returns an io::Error if the home directory cannot be found, if creating the .zoi directory fails, or if writing to pinned.json fails.