Fix some lints
This commit is contained in:
parent
0baf79cb8c
commit
f77db3c6f8
3 changed files with 3 additions and 3 deletions
|
|
@ -88,7 +88,7 @@ pub fn add_repo(dir: &LockedDataDir, name: String) -> anyhow::Result<RepoId> {
|
||||||
|
|
||||||
pub fn remove_repo(dir: &LockedDataDir, id: RepoId) -> anyhow::Result<()> {
|
pub fn remove_repo(dir: &LockedDataDir, id: RepoId) -> anyhow::Result<()> {
|
||||||
let mut state = load_state(dir)?;
|
let mut state = load_state(dir)?;
|
||||||
state.repos.remove(&id).is_none();
|
state.repos.remove(&id);
|
||||||
save_state(dir, state)?;
|
save_state(dir, state)?;
|
||||||
|
|
||||||
// TODO Check if this works with read-only files
|
// TODO Check if this works with read-only files
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ use std::path::Path;
|
||||||
use anyhow::{anyhow, bail};
|
use anyhow::{anyhow, bail};
|
||||||
use git2::{ErrorCode, Repository};
|
use git2::{ErrorCode, Repository};
|
||||||
|
|
||||||
pub use self::v1::{Note, Repo, VERSION};
|
pub use self::v1::{Repo, VERSION};
|
||||||
|
|
||||||
const VERSION_FILE: &str = "VERSION";
|
const VERSION_FILE: &str = "VERSION";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ impl Repo {
|
||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn migrate(self) -> super::Repo {
|
pub fn migrate(self) -> Self {
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue