From 08fb1c16b46ab39394a67c8f649ed0e7abd62ddf Mon Sep 17 00:00:00 2001 From: Gurchetan Singh Date: Tue, 16 Sep 2025 07:15:59 -0700 Subject: [PATCH] util: rust: spelling and whitespace fixes Reviewed-by: Aaron Ruby Part-of: --- src/util/rust/error.rs | 8 ++++---- src/util/rust/meson.build | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/util/rust/error.rs b/src/util/rust/error.rs index f9bd5da1a3d..16725dcf6b7 100644 --- a/src/util/rust/error.rs +++ b/src/util/rust/error.rs @@ -18,11 +18,11 @@ pub enum MesaError { /// An error with the MesaHandle #[error("invalid Mesa handle")] InvalidMesaHandle, - /// An input/output error occured. - #[error("an input/output error occur: {0}")] + /// An input/output error occurred. + #[error("an input/output error occurred: {0}")] IoError(IoError), /// Nul crate error. - #[error("Nul Error occured {0}")] + #[error("Nul Error occurred {0}")] NulError(NulError), /// Rustix crate error. #[cfg(any(target_os = "android", target_os = "linux"))] @@ -35,7 +35,7 @@ pub enum MesaError { #[error("the requested function is not implemented")] Unsupported, /// Utf8 error. - #[error("an utf8 error occured: {0}")] + #[error("an utf8 error occurred: {0}")] Utf8Error(Utf8Error), /// An error with a free form context, similar to anyhow #[error("operation failed: {0}")] diff --git a/src/util/rust/meson.build b/src/util/rust/meson.build index 2596c91f39a..8e95ed235d1 100644 --- a/src/util/rust/meson.build +++ b/src/util/rust/meson.build @@ -52,7 +52,7 @@ if host_machine.system() == 'linux' fallback: ['errno-0.3-rs', 'dep_errno'], required: true, ) - + dep_mesa3d_util += [dep_rustix, dep_bitflags, dep_errno] endif