From 8e7f3f4336200b63d7dd0898dfc2f510aa8883cd Mon Sep 17 00:00:00 2001 From: figsoda Date: Thu, 29 Dec 2022 21:09:46 -0500 Subject: [PATCH] cargo fmt --- src/fetcher/git.rs | 2 +- src/fetcher/mod.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fetcher/git.rs b/src/fetcher/git.rs index e2a6054..c15b3b7 100644 --- a/src/fetcher/git.rs +++ b/src/fetcher/git.rs @@ -3,6 +3,6 @@ use crate::fetcher::UrlFlakeFetcher; pub struct Fetchgit; impl UrlFlakeFetcher for Fetchgit { - const NAME: &'static str = "fetchgit"; const FLAKE_TYPE: &'static str = "git"; + const NAME: &'static str = "fetchgit"; } diff --git a/src/fetcher/mod.rs b/src/fetcher/mod.rs index fe184c9..cd6e038 100644 --- a/src/fetcher/mod.rs +++ b/src/fetcher/mod.rs @@ -57,8 +57,8 @@ pub fn flake_prefetch(flake_ref: String) -> Result { } pub trait SimpleFlakeFetcher<'a> { - const NAME: &'static str; const FLAKE_TYPE: &'static str; + const NAME: &'static str; fn host(&self) -> Option<&'a str>; @@ -103,9 +103,9 @@ pub trait SimpleFlakeFetcher<'a> { } } -pub(crate) trait UrlFlakeFetcher { - const NAME: &'static str; +pub trait UrlFlakeFetcher { const FLAKE_TYPE: &'static str; + const NAME: &'static str; fn fetch_nix(&self, out: &mut impl Write, url: &Url, rev: String, indent: &str) -> Result<()> { let hash = flake_prefetch(format!(