From 99b8d8ec8cee60228a24c125725d6e3fcba4c946 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 17 Jan 2024 11:02:03 -0500 Subject: [PATCH] install: s/from/new/ This is more standard naming. Signed-off-by: Colin Walters --- lib/src/install.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/src/install.rs b/lib/src/install.rs index 0c343dbb5..bf46789d6 100644 --- a/lib/src/install.rs +++ b/lib/src/install.rs @@ -393,16 +393,17 @@ impl SourceInfo { if !skopeo_supports_containers_storage { anyhow::bail!("This functionality requires at least skopeo v1.11 on the host"); } - Self::from(imageref, Some(digest), true) + Self::new(imageref, Some(digest), true) } #[context("Creating source info from a given imageref")] pub(crate) fn from_imageref(imageref: &str) -> Result { let imageref = ostree_container::ImageReference::try_from(imageref)?; - Self::from(imageref, None, false) + Self::new(imageref, None, false) } - fn from( + /// Construct a new source information structure + fn new( imageref: ostree_container::ImageReference, digest: Option, in_host_mountns: bool,