cargo fmt

This commit is contained in:
figsoda 2022-12-29 21:09:46 -05:00
parent eafb9ebb32
commit 8e7f3f4336
2 changed files with 4 additions and 4 deletions

View File

@ -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";
}

View File

@ -57,8 +57,8 @@ pub fn flake_prefetch(flake_ref: String) -> Result<String> {
}
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!(