Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaccha committed Oct 4, 2024
1 parent 1c01096 commit 654b68f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/edam.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ impl EdamMap {
}
}

#[allow(dead_code)]
pub fn get_id_from_label(&self, label: &str) -> Option<String> {
let id = self.bimap_id_label.get_by_right(label);

Expand Down
1 change: 0 additions & 1 deletion src/ext_tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use anyhow::{anyhow, bail, Context, Result};
use log::{debug, info};
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::fs;
use std::io::Write;
use std::os::unix::fs::PermissionsExt;
use std::path::{Path, PathBuf};
Expand Down
2 changes: 2 additions & 0 deletions src/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pub enum Source {
FilePath(PathBuf),
TempFile(NamedTempFile),
Stdin,
#[allow(dead_code)]
Memory(Vec<u8>),
}

Expand Down Expand Up @@ -160,6 +161,7 @@ impl Source {

// if the input from stdin is compressed and no_decompress is false, decompress the input, save it into tempfile and return Source::FilePath(tempfile path)
// if the input from stdin is either not compressed or no_decompress is true, save it into tempfile and return Source::FilePath(tempfile path)
#[allow(clippy::significant_drop_tightening)]
pub fn convert_into_tempfile_from_stdin(
options: &InvokeOptions,
temp_dir: &TempDir,
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mod common;
use std::fs;
use std::path::Path;

use common::{calculate_checksum, check_and_create_cache_dir, is_running_on_m1_mac, tataki};
use common::{calculate_checksum, check_and_create_cache_dir, tataki};

/*
test cases:
Expand Down

0 comments on commit 654b68f

Please sign in to comment.