From 0a4f3ad772537db5bbebd4e4acca7a0db93e0879 Mon Sep 17 00:00:00 2001 From: Dominik Nakamura Date: Sat, 4 May 2024 17:38:44 +0200 Subject: [PATCH] refactor: remove unused error variant --- CHANGELOG.md | 4 ++++ src/lib.rs | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aaf1948..00c9f8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - New `source` command for scene items. - New `InputSettingsChanged` and `SourceFilterSettingsChanged` event. +### Removed + +- **BREAKING CHANGE:** Removed the `Error::NoPassword` variant, which was a relic from the previous v4.x API of obs-websocket. The new API doesn't provide any way to tell whether the password is the cause of an authentication error. However, the `WebSocketCloseCode::AuthenticationFailed` is the closest to identifying this error. + ## [0.11.5] - 2023-09-04 ### Changed diff --git a/src/lib.rs b/src/lib.rs index a96081c..f3befd4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -89,9 +89,6 @@ pub enum Error { /// Optional message to provide additional details about the error. message: Option, }, - /// The obs-websocket API requires authentication but no password was given. - #[error("authentication required but no password provided")] - NoPassword, /// Unknown flags were found while trying to parse bitflags. #[error("value {0} contains unknown flags")] UnknownFlags(u8),