mirror of
https://github.com/nix-community/nurl.git
synced 2024-08-17 05:50:22 +03:00
cargo fmt
This commit is contained in:
parent
eafb9ebb32
commit
8e7f3f4336
@ -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";
|
||||
}
|
||||
|
@ -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!(
|
||||
|
Loading…
Reference in New Issue
Block a user