aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs4
-rw-r--r--src/repo/aggregate.rs4
-rw-r--r--src/sync/mod.rs2
-rw-r--r--src/update/mod.rs2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs
index bad9436..e37427c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -22,6 +22,7 @@ mod update;
mod tests;
#[derive(Debug)]
+#[allow(dead_code)]
struct GTree {
figment: figment::Figment,
config: config::Config,
@@ -45,7 +46,6 @@ impl GTree {
let rt = Runtime::new()?;
-
let forge = rt.block_on(forge::Forge::new(forge_config))?;
Ok(GTree {
@@ -71,7 +71,7 @@ impl GTree {
let scope_t = scope.clone();
let forge_t = forge.clone();
let handle = thread::spawn(move || {
- Repos::from_local(&forge_t.root(), &scope_t)
+ Repos::from_local(forge_t.root(), &scope_t)
});
let projects = self.rt.block_on(self.forge.projects(&scope))?;
diff --git a/src/repo/aggregate.rs b/src/repo/aggregate.rs
index 0d9573c..d5a59ba 100644
--- a/src/repo/aggregate.rs
+++ b/src/repo/aggregate.rs
@@ -80,7 +80,7 @@ impl Aggregator for Repos {
}
}
- return repos;
+ repos
}
#[tracing::instrument(level = "trace")]
@@ -116,6 +116,6 @@ impl Aggregator for Repos {
local.extend(remote.into_iter());
// local.sort();
- return local;
+ local
}
}
diff --git a/src/sync/mod.rs b/src/sync/mod.rs
index 271f672..6cf1f7f 100644
--- a/src/sync/mod.rs
+++ b/src/sync/mod.rs
@@ -4,7 +4,7 @@ use crate::repo::{Repo, RepoError, Repos};
impl crate::GTree {
pub fn sync(&self, repos: Repos) {
- for (name, repo) in repos {
+ for (_name, repo) in repos {
let mut repo = repo.write().unwrap();
match repo.sync() {
diff --git a/src/update/mod.rs b/src/update/mod.rs
index 609b35e..d2d6494 100644
--- a/src/update/mod.rs
+++ b/src/update/mod.rs
@@ -7,7 +7,7 @@ use crate::repo::{Repo, RepoError, Repos};
impl crate::GTree {
pub fn update(&self, repos: Repos) {
- for (name, repo) in repos {
+ for (_name, repo) in repos {
let mut repo = repo.write().unwrap();
if repo.repo.is_some() {
>update dependenciesMax Audron-691/+1659 2024-08-12add nix build and moduleMax Audron-5/+427 2022-02-19remove jsonnet lock fileMax Audron-36/+0 2022-02-19fix deploy to work with gitlab agentMax Audron-4/+4 2021-10-22write tons of documentation and reorganize some modulesMax Audron-65/+300 2021-10-22remove wolfram alpha url shorteningMax Audron-1/+2 2021-10-20remove failing wolfram alpha test casesMax Audron-105/+55 this is due to the url shorterner dying randomly and also just generally bad idea to call external services during unit tests. 2021-10-20bump version to 1.6.2Max Audron-3/+2 2021-10-20prepare for release on crates.ioMax Audron-39/+65 2021-10-20add async docs to macro crate and bump versionMax Audron-9/+10 2021-10-20change hook errors to be logged as warningsMax Audron-3/+3 they in nearly all cases aren't critical enough to warrant an actual error messages 2021-10-20fix configuration not loading correctly on release buildsMax Audron-8/+23 2021-10-19replace sedregex crate8-rework-sedMax Audron-20/+358 This replaces the sedregex crate with our own implementation for multiple reasons: 1. We required to access the parsed regex, this required a patch to the sedregex crate which did not get merged due to an inactive dev, blocking us from publishing on crates.Io 2. We wanted to highlight the changes done in bold 3. We want to add execution of multiple chained sed commands in the future which would require more modification 2021-10-19add formatting trait for irc codesMax Audron-0/+129 add an impl off the formatting trait on String to format Strings with the typical irc formatting codes for bold, italic etc 2021-10-17fix links in readmeMax Audron-2/+2