Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavrax committed Aug 29, 2023
1 parent 6e02842 commit 42c2d65
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/dx/presence/builders/where_now.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@
//! The [`WhereNowRequestBuilder`] lets you make and execute a Here Now request
//! that will associate a user with a channel.
use core::ops::Deref;

use derive_builder::Builder;

use crate::{
core::{
utils::{
encoding::{
url_encode_extended, url_encoded_channel_groups, url_encoded_channels,
UrlEncodeExtension,
},
encoding::{url_encode_extended, UrlEncodeExtension},
headers::{APPLICATION_JSON, CONTENT_TYPE},
},
Deserializer, PubNubError, Transport, TransportMethod, TransportRequest,
Expand Down Expand Up @@ -61,7 +56,7 @@ impl<T, D> WhereNowRequestBuilder<T, D> {
self.user_id
.clone()
.is_some_and(|id| !id.is_empty())
.then(|| ())
.then_some(())
.ok_or_else(|| {
"User ID is empty. It should be provided and not empty string.".to_owned()
})
Expand Down

0 comments on commit 42c2d65

Please sign in to comment.