Skip to content

Commit

Permalink
Clean up unused warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jw013 committed Jan 8, 2024
1 parent bd95a38 commit f6b9590
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions src/check_release.rs
Original file line number Diff line number Diff line change
@@ -1,35 +1,19 @@
use std::{collections::BTreeMap, env, io::Write, iter::Peekable, sync::Arc, time::Duration};
use std::{collections::BTreeMap, sync::Arc};

use anyhow::Context;
use clap::crate_version;
use itertools::Itertools;
use rayon::prelude::*;
use termcolor::Color;
use termcolor_output::{colored, colored_ln};
use trustfall::{FieldValue, TransparentValue};
use trustfall::TransparentValue;
use trustfall_rustdoc::{VersionedCrate, VersionedIndexedCrate, VersionedRustdocAdapter};

use crate::{
query::{ActualSemverUpdate, RequiredSemverUpdate, SemverQuery},
CrateReport, GlobalConfig, ReleaseType,
};

type QueryResultItem = BTreeMap<Arc<str>, FieldValue>;

struct QueryWithResults<'a> {
name: &'a str,
results: Peekable<Box<dyn Iterator<Item = QueryResultItem> + 'a>>,
}

impl<'a> QueryWithResults<'a> {
fn new(
name: &'a str,
results: Peekable<Box<dyn Iterator<Item = QueryResultItem> + 'a>>,
) -> Self {
Self { name, results }
}
}

fn classify_semver_version_change(
current_version: Option<&str>,
baseline_version: Option<&str>,
Expand Down

0 comments on commit f6b9590

Please sign in to comment.