Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit efe81f3

Browse files
committed
Bump rust to 1.63.
Run cargo clippy --fix.
1 parent 79a4b48 commit efe81f3

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
- uses: actions-rs/toolchain@v1
1919
with:
20-
toolchain: 1.62.0
20+
toolchain: 1.63.0
2121
components: rustfmt, clippy
2222
default: true
2323
- name: Checkout git repository
@@ -26,10 +26,10 @@ jobs:
2626
run: cargo fmt -- --check
2727
- name: Install cargo-deny
2828
run: |
29-
wget https://github.com/EmbarkStudios/cargo-deny/releases/download/0.12.1/cargo-deny-0.12.1-x86_64-unknown-linux-musl.tar.gz
30-
tar -xvf cargo-deny-0.12.1-x86_64-unknown-linux-musl.tar.gz
29+
wget https://github.com/EmbarkStudios/cargo-deny/releases/download/0.12.2/cargo-deny-0.12.2-x86_64-unknown-linux-musl.tar.gz
30+
tar -xvf cargo-deny-0.12.2-x86_64-unknown-linux-musl.tar.gz
3131
mkdir -p ~/bin/
32-
cp cargo-deny-0.12.1-x86_64-unknown-linux-musl/cargo-deny ~/bin/
32+
cp cargo-deny-0.12.2-x86_64-unknown-linux-musl/cargo-deny ~/bin/
3333
rm -r cargo-deny-*
3434
echo "$HOME/bin" >> $GITHUB_PATH
3535
- name: Cache cargo registry

amino/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ pub fn have_stop(b: &DnaString, j: usize) -> bool {
3232

3333
pub fn aa3_to_aa(aa3: &[u8]) -> u8 {
3434
assert!(aa3.len() == 3);
35-
let aa = match aa3 {
35+
36+
match aa3 {
3637
b"ALA" => b'A',
3738
b"ARG" => b'R',
3839
b"ASN" => b'N',
@@ -54,13 +55,13 @@ pub fn aa3_to_aa(aa3: &[u8]) -> u8 {
5455
b"TYR" => b'Y',
5556
b"VAL" => b'V',
5657
_ => panic!("Unexpected three-letter amino acid code {}.", strme(aa3)),
57-
};
58-
aa
58+
}
5959
}
6060

6161
pub fn codon_to_aa(codon: &[u8]) -> u8 {
6262
assert!(codon.len() == 3);
63-
let aa = match codon {
63+
64+
match codon {
6465
b"GGT" => b'G',
6566
b"GGC" => b'G',
6667
b"GGA" => b'G',
@@ -126,8 +127,7 @@ pub fn codon_to_aa(codon: &[u8]) -> u8 {
126127
b"TAA" => b'*',
127128
b"TGA" => b'*',
128129
_ => panic!("Unexpected codon {}.", strme(codon)),
129-
};
130-
aa
130+
}
131131
}
132132

133133
// Convert a given DNA sequence to amino acids, starting at a given position.

bio_edit/src/alphabets/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::borrow::Borrow;
77

88
use bit_set::BitSet;
99

10-
#[derive(Debug, PartialEq)]
10+
#[derive(Debug, PartialEq, Eq)]
1111
pub struct Alphabet {
1212
pub symbols: BitSet,
1313
}

pretty_trace/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ fn force_pretty_trace_fancy(
870870
}
871871
let msg = match info.location() {
872872
Some(location) => {
873-
let loc = &(*location.file());
873+
let loc = location.file();
874874

875875
// Replace long constructs of the form /rustc/......./src/
876876
// by /rustc/<stuff>/src/.

vdj_ann/src/annotate.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2794,7 +2794,7 @@ pub fn print_cdr3_using_ann(
27942794
// EXTEND_PENALTY = 1
27952795
// which are copied from cellranger/lib/python/cellranger/vdj/constants.py.
27962796

2797-
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
2797+
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq)]
27982798
pub struct AnnotationFeature {
27992799
pub chain: VdjChain, // chain type of the reference record, e.g. TRA
28002800
pub display_name: String, // same as gene_name
@@ -2803,7 +2803,7 @@ pub struct AnnotationFeature {
28032803
pub region_type: VdjRegion, // region type e.g. L-REGION+V-REGION
28042804
}
28052805

2806-
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
2806+
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq)]
28072807
pub struct AnnotationUnit {
28082808
pub contig_match_start: usize, // start on contig
28092809
pub contig_match_end: usize, // stop on contig
@@ -2941,7 +2941,7 @@ impl AnnotationUnit {
29412941
}
29422942
}
29432943

2944-
#[derive(Debug, Serialize, Deserialize, Clone, Default, PartialEq)]
2944+
#[derive(Debug, Serialize, Deserialize, Clone, Default, PartialEq, Eq)]
29452945
pub struct ClonotypeInfo {
29462946
#[serde(default)]
29472947
pub raw_clonotype_id: Option<String>,
@@ -2957,7 +2957,7 @@ impl ClonotypeInfo {
29572957
}
29582958
}
29592959

2960-
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
2960+
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq)]
29612961
pub struct Region {
29622962
pub start: usize,
29632963
pub stop: usize,

0 commit comments

Comments
 (0)