From 41d36d75ac0e442212366f3d0567e33ecb47c067 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Fri, 23 Aug 2024 15:40:07 -0700 Subject: [PATCH] [oximeter] spell "Celsius" correctly (#6426) Thanks to @elaine-oxide for catching this --- I had misspelt "Celsius" as "Celcius" and it had made it all the way into the CLI thanks to its dependency on the Nexus API. This commit corrects the misspelling. --- openapi/nexus.json | 2 +- oximeter/schema/src/codegen.rs | 4 ++-- oximeter/types/src/schema.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/openapi/nexus.json b/openapi/nexus.json index 285dcd82bb..2a8c227c64 100644 --- a/openapi/nexus.json +++ b/openapi/nexus.json @@ -19934,7 +19934,7 @@ "nanoseconds", "volts", "amps", - "degrees_celcius" + "degrees_celsius" ] }, { diff --git a/oximeter/schema/src/codegen.rs b/oximeter/schema/src/codegen.rs index 0429cf0534..c46c25c97d 100644 --- a/oximeter/schema/src/codegen.rs +++ b/oximeter/schema/src/codegen.rs @@ -512,8 +512,8 @@ fn quote_units(units: Units) -> TokenStream { } Units::Amps => quote! { ::oximeter::schema::Units::Amps }, Units::Volts => quote! { ::oximeter::schema::Units::Volts }, - Units::DegreesCelcius => { - quote! { ::oximeter::schema::Units::DegreesCelcius } + Units::DegreesCelsius => { + quote! { ::oximeter::schema::Units::DegreesCelsius } } Units::Rpm => quote! { ::oximeter::schema::Units::Rpm }, } diff --git a/oximeter/types/src/schema.rs b/oximeter/types/src/schema.rs index 80aaa6f101..e06e6e2b57 100644 --- a/oximeter/types/src/schema.rs +++ b/oximeter/types/src/schema.rs @@ -189,7 +189,7 @@ pub enum Units { Nanoseconds, Volts, Amps, - DegreesCelcius, + DegreesCelsius, /// Rotations per minute. Rpm, }