Skip to content

Commit 0fac181

Browse files
authored
update to Rust 1.89 (#8844)
Update Dropshot to 0.16.3 to address a new lint warning (thanks @ahl for getting it out!), plus some other dependency updates that Dropshot pulled in.
1 parent 8bb6386 commit 0fac181

File tree

29 files changed

+63
-58
lines changed

29 files changed

+63
-58
lines changed

Cargo.lock

Lines changed: 16 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ bootstrap-agent-client = { path = "clients/bootstrap-agent-client" }
374374
buf-list = { version = "1.0.3", features = ["tokio1"] }
375375
byteorder = "1.5.0"
376376
bytes = "1.10.1"
377-
camino = { version = "1.1", features = ["serde1"] }
377+
camino = { version = "1.1.11", features = ["serde1"] }
378378
camino-tempfile = "1.4.1"
379379
camino-tempfile-ext = { version = "0.3.2", features = ["assert-color"] }
380380
cancel-safe-futures = "0.1.5"
@@ -429,7 +429,7 @@ dns-server = { path = "dns-server" }
429429
dns-server-api = { path = "dns-server-api" }
430430
dns-service-client = { path = "clients/dns-service-client" }
431431
dpd-client = { git = "https://github.com/oxidecomputer/dendrite", rev = "6e666520620e26432333d9060bc7d249ba9fa92e" }
432-
dropshot = { version = "0.16.2", features = [ "usdt-probes" ] }
432+
dropshot = { version = "0.16.3", features = [ "usdt-probes" ] }
433433
dyn-clone = "1.0.19"
434434
either = "1.15.0"
435435
ereport-types = { path = "ereport/types" }
@@ -672,7 +672,7 @@ semver = { version = "1.0.26", features = ["std", "serde"] }
672672
serde = { version = "1.0", default-features = false, features = [ "derive", "rc" ] }
673673
serde_cbor = "0.11.2"
674674
serde_human_bytes = { git = "https://github.com/oxidecomputer/serde_human_bytes", branch = "main" }
675-
serde_json = "1.0.141"
675+
serde_json = "1.0.142"
676676
serde_tokenstream = "0.2"
677677
serde_urlencoded = "0.7.1"
678678
serde_with = { version = "3.14.0", default-features = false, features = ["alloc", "macros"] }

common/src/api/external/http_pagination.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ where
200200
fn data_page_params_with_limit<S>(
201201
limit: NonZeroU32,
202202
pag_params: &PaginationParams<S, PageSelector<S, S::MarkerValue>>,
203-
) -> Result<DataPageParams<S::MarkerValue>, HttpError>
203+
) -> Result<DataPageParams<'_, S::MarkerValue>, HttpError>
204204
where
205205
S: ScanParams,
206206
{

dev-tools/openapi-manager/src/resolved.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,11 +560,11 @@ impl<'a> Resolved<'a> {
560560
&self,
561561
ident: &ApiIdent,
562562
version: &semver::Version,
563-
) -> Option<&Resolution> {
563+
) -> Option<&Resolution<'_>> {
564564
self.api_results.get(ident).and_then(|v| v.by_version.get(version))
565565
}
566566

567-
pub fn symlink_problem(&self, ident: &ApiIdent) -> Option<&Problem> {
567+
pub fn symlink_problem(&self, ident: &ApiIdent) -> Option<&Problem<'_>> {
568568
self.api_results.get(ident).and_then(|v| v.symlink.as_ref())
569569
}
570570

nexus-sled-agent-shared/src/inventory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ impl ZoneManifestBootInventory {
558558
}
559559

560560
/// Returns a displayer for this inventory.
561-
pub fn display(&self) -> ZoneManifestBootInventoryDisplay {
561+
pub fn display(&self) -> ZoneManifestBootInventoryDisplay<'_> {
562562
ZoneManifestBootInventoryDisplay { inner: self }
563563
}
564564
}

nexus/db-model/src/l4_port_range.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ NewtypeDeref! { () pub struct L4PortRange(external::L4PortRange); }
2424
impl DatabaseString for L4PortRange {
2525
type Error = <external::L4PortRange as FromStr>::Err;
2626

27-
fn to_database_string(&self) -> Cow<str> {
27+
fn to_database_string(&self) -> Cow<'_, str> {
2828
self.0.to_string().into()
2929
}
3030

nexus/db-model/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ pub(crate) use impl_from_sql_text;
432432
pub trait DatabaseString: Sized {
433433
type Error: std::fmt::Display;
434434

435-
fn to_database_string(&self) -> Cow<str>;
435+
fn to_database_string(&self) -> Cow<'_, str>;
436436
fn from_database_string(s: &str) -> Result<Self, Self::Error>;
437437
}
438438

@@ -445,7 +445,7 @@ use std::borrow::Cow;
445445
impl DatabaseString for FleetRole {
446446
type Error = anyhow::Error;
447447

448-
fn to_database_string(&self) -> Cow<str> {
448+
fn to_database_string(&self) -> Cow<'_, str> {
449449
match self {
450450
FleetRole::Admin => "admin",
451451
FleetRole::Collaborator => "collaborator",
@@ -470,7 +470,7 @@ impl DatabaseString for FleetRole {
470470
impl DatabaseString for SiloRole {
471471
type Error = anyhow::Error;
472472

473-
fn to_database_string(&self) -> Cow<str> {
473+
fn to_database_string(&self) -> Cow<'_, str> {
474474
match self {
475475
SiloRole::Admin => "admin",
476476
SiloRole::Collaborator => "collaborator",
@@ -495,7 +495,7 @@ impl DatabaseString for SiloRole {
495495
impl DatabaseString for ProjectRole {
496496
type Error = anyhow::Error;
497497

498-
fn to_database_string(&self) -> Cow<str> {
498+
fn to_database_string(&self) -> Cow<'_, str> {
499499
match self {
500500
ProjectRole::Admin => "admin",
501501
ProjectRole::Collaborator => "collaborator",

nexus/db-model/src/role_assignment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ mod tests {
129129
impl crate::DatabaseString for DummyRoles {
130130
type Error = anyhow::Error;
131131

132-
fn to_database_string(&self) -> Cow<str> {
132+
fn to_database_string(&self) -> Cow<'_, str> {
133133
unimplemented!()
134134
}
135135

nexus/db-model/src/vpc_firewall_rule.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ NewtypeDeref! { () pub struct VpcFirewallRuleProtocol(external::VpcFirewallRuleP
7070
impl DatabaseString for VpcFirewallRuleProtocol {
7171
type Error = <external::VpcFirewallRuleProtocol as FromStr>::Err;
7272

73-
fn to_database_string(&self) -> Cow<str> {
73+
fn to_database_string(&self) -> Cow<'_, str> {
7474
self.0.to_string().into()
7575
}
7676

@@ -93,7 +93,7 @@ NewtypeDeref! { () pub struct VpcFirewallRuleTarget(external::VpcFirewallRuleTar
9393
impl DatabaseString for VpcFirewallRuleTarget {
9494
type Error = <external::VpcFirewallRuleTarget as FromStr>::Err;
9595

96-
fn to_database_string(&self) -> Cow<str> {
96+
fn to_database_string(&self) -> Cow<'_, str> {
9797
self.0.to_string().into()
9898
}
9999

@@ -116,7 +116,7 @@ NewtypeDeref! { () pub struct VpcFirewallRuleHostFilter(external::VpcFirewallRul
116116
impl DatabaseString for VpcFirewallRuleHostFilter {
117117
type Error = <external::VpcFirewallRuleHostFilter as FromStr>::Err;
118118

119-
fn to_database_string(&self) -> Cow<str> {
119+
fn to_database_string(&self) -> Cow<'_, str> {
120120
self.0.to_string().into()
121121
}
122122

nexus/db-model/src/vpc_route.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub struct RouteTarget(pub external::RouteTarget);
3535
impl DatabaseString for RouteTarget {
3636
type Error = <external::RouteTarget as FromStr>::Err;
3737

38-
fn to_database_string(&self) -> Cow<str> {
38+
fn to_database_string(&self) -> Cow<'_, str> {
3939
self.0.to_string().into()
4040
}
4141

@@ -63,7 +63,7 @@ impl RouteDestination {
6363
impl DatabaseString for RouteDestination {
6464
type Error = <external::RouteDestination as FromStr>::Err;
6565

66-
fn to_database_string(&self) -> Cow<str> {
66+
fn to_database_string(&self) -> Cow<'_, str> {
6767
self.0.to_string().into()
6868
}
6969

0 commit comments

Comments
 (0)