Skip to content

Commit

Permalink
Update return type of base_uri
Browse files Browse the repository at this point in the history
  • Loading branch information
sugyan committed Nov 22, 2023
1 parent e12c3d1 commit ed99f39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions atrium-xrpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub type XrpcResult<O, E> = Result<OutputDataOrBytes<O>, self::Error<E>>;
/// which wraps the [`HttpClient::send_http()`]` method to handle input and output as an XRPC Request.
#[async_trait]
pub trait XrpcClient: HttpClient {
fn base_uri(&self) -> &str;
fn base_uri(&self) -> String;
#[allow(unused_variables)]
async fn auth(&self, is_refresh: bool) -> Option<String> {
None
Expand Down Expand Up @@ -150,8 +150,8 @@ mod tests {

#[async_trait]
impl XrpcClient for DummyClient {
fn base_uri(&self) -> &str {
"https://example.com"
fn base_uri(&self) -> String {
"https://example.com".into()
}
}

Expand Down

0 comments on commit ed99f39

Please sign in to comment.