knave 0.14.4

A Lisp programming language for humans and agents that infers types and ownership and compiles to readable Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::path::PathBuf;

use super::library_store::LibraryStore;
use super::user_git_store::UserGitStore;
use crate::build::StoreError;

#[derive(Default)]
pub struct FetchingStore {
    git: UserGitStore,
}

impl LibraryStore for FetchingStore {
    fn checkout(&mut self, url: &str, commit: &str) -> Result<PathBuf, StoreError> {
        self.git.opened()?.checkout(url, commit)
    }
}