Skip to content

Commit 8db571b

Browse files
build(rust): Update Rust toolchain to 1.90 (#2778)
Update Rust toolchain to 1.90 (1.90.0). **Changes:** - Update `rust-toolchain.toml` channel to `1.90` **Release Notes:** https://github.com/rust-lang/rust/releases/tag/1.90.0 ### Fixed lints The following lints triggered after the update, they have been fixed: ``` warning: unnecessary parentheses around closure body --> src/commands/monitors/list.rs:20:30 | 20 | monitors.sort_by_key(|p| (p.name.clone())); | ^ ^ | = note: `#[warn(unused_parens)]` on by default help: remove these parentheses | 20 - monitors.sort_by_key(|p| (p.name.clone())); 20 + monitors.sort_by_key(|p| p.name.clone()); | warning: struct `GitHubAsset` is never constructed --> src/api/mod.rs:2181:8 | 2181 | struct GitHubAsset { | ^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default warning: struct `GitHubRelease` is never constructed --> src/api/mod.rs:2187:8 | 2187 | struct GitHubRelease { | ^^^^^^^^^^^^^ ``` --- 🤖 *This PR was created automatically by the Rust toolchain update bot.* --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Daniel Szoke <daniel.szoke@sentry.io>
1 parent 4c70555 commit 8db571b

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[toolchain]
22
# We pin the minor version to prevent new Clippy lints from breaking CI.
33
# But, we still want to pick up new patch versions.
4-
channel = "1.89"
4+
channel = "1.90"

src/api/mod.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,18 +2177,6 @@ pub struct ReleaseCommit {
21772177
pub id: String,
21782178
}
21792179

2180-
#[derive(Debug, Serialize, Deserialize)]
2181-
struct GitHubAsset {
2182-
browser_download_url: String,
2183-
name: String,
2184-
}
2185-
2186-
#[derive(Debug, Serialize, Deserialize)]
2187-
struct GitHubRelease {
2188-
tag_name: String,
2189-
assets: Vec<GitHubAsset>,
2190-
}
2191-
21922180
#[derive(Debug, Serialize, Deserialize)]
21932181
struct RegistryRelease {
21942182
version: String,

src/commands/monitors/list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
1717
let api = Api::current();
1818
let org = config.get_org(matches)?;
1919
let mut monitors = api.authenticated()?.list_organization_monitors(&org)?;
20-
monitors.sort_by_key(|p| (p.name.clone()));
20+
monitors.sort_by_key(|p| p.name.clone());
2121

2222
let mut table = Table::new();
2323
table

0 commit comments

Comments
 (0)