Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Commit

Permalink
Update to rust 1.63
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Sellier <[email protected]>
  • Loading branch information
cloudhead committed Aug 11, 2022
1 parent a9a3778 commit c045399
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
with:
profile: minimal
components: clippy, rustfmt
toolchain: stable
toolchain: 1.63
- name: Run clippy
uses: actions-rs/cargo@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion common/src/cobs/patch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ impl<'a> PatchStore<'a> {
);
let history = events::create(&author, title, &revision, target, timestamp, labels)?;

cobs::create(history, project, &self.whoami, &*self.store)
cobs::create(history, project, &self.whoami, self.store)
}

pub fn comment(
Expand Down
2 changes: 1 addition & 1 deletion common/src/ethereum/governance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub enum Error<M: Middleware> {

type Proposal = (Address, U256, U256, U256, U256, U256, bool, bool);

#[derive(PartialEq, Debug)]
#[derive(Eq, PartialEq, Debug)]
pub enum ProposalState {
Pending,
Active,
Expand Down
2 changes: 1 addition & 1 deletion common/src/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl FromStr for Origin {
} else if let Ok(url) = Url::from_str(s) {
Self::try_from(url)
} else {
return Err(anyhow!("invalid origin '{}'", s));
Err(anyhow!("invalid origin '{}'", s))
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion common/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ pub fn list_rad_remote_heads(
let heads = remote.remote_heads(settings, repo)?;

for (head, oid) in heads {
if let Some((peer, r)) = git::parse_remote(&head.to_string()) {
if let Some((peer, r)) = git::parse_remote(&head) {
if let Some(branch) = r.strip_prefix("heads/") {
let value = (branch.to_owned(), oid);
remotes.entry(peer).or_insert_with(Vec::new).push(value);
Expand Down
2 changes: 1 addition & 1 deletion reward/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Environment variables
"#,
};

#[derive(Debug, PartialEq)]
#[derive(Debug, Eq, PartialEq)]
pub enum Strategy {
Equally,
Weighted,
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
stable
1.63

0 comments on commit c045399

Please sign in to comment.