Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove nullptr error enum
Browse files Browse the repository at this point in the history
ashu26jha committed Aug 6, 2024
1 parent feed347 commit edc9855
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions utils/env_preferences/src/error.rs
Original file line number Diff line number Diff line change
@@ -18,9 +18,6 @@ pub enum RetrievalError {
/// Unable to retrieve the locale
NullLocale,

/// Received NULL Pointer
NullPointer,

/// Unable to retrieve TimeZone
NullTimeZone,

2 changes: 1 addition & 1 deletion utils/env_preferences/tests/test.rs
Original file line number Diff line number Diff line change
@@ -62,7 +62,7 @@ mod linux_tests {
let tr = unsafe { setlocale(libc::LC_TIME, locale_cstr.as_ptr()) };

if tr.is_null() {
panic!("{:?}", RetrievalError::NullPointer);
panic!("{:?}", RetrievalError::NullLocale);
}

let calendar_locale = get_system_calendars().unwrap();

0 comments on commit edc9855

Please sign in to comment.