Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
martsokha committed May 1, 2024
1 parent cbeb31d commit 0b66f02
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
A minimal [Resend](https://resend.com) client.

[action-badge]: https://img.shields.io/github/actions/workflow/status/AntoniosBarotsis/resend-rs/ci.yml
[action-url]: https://github.com/spire-rs/AntoniosBarotsis/resend-rs/workflows/build.yaml
[action-url]: https://github.com/AntoniosBarotsis/resend-rs/actions/workflows/ci.yml
[crates-badge]: https://img.shields.io/crates/v/resend-rs
[crates-url]: https://crates.io/crates/resend-rs
[docs-badge]: https://img.shields.io/docsrs/resend-rs
Expand All @@ -21,8 +21,6 @@ internally.
[reqwest]: https://github.com/seanmonstar/reqwest
[serde]: https://github.com/serde-rs/serde

If anyone else is looking into this, however, I would not mind expanding it.

#### Features

- `blocking` to enable the blocking client.
Expand Down
6 changes: 3 additions & 3 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ impl Client {
self.config().user_agent.as_str()
}

/// Returns the reference to the provided API key.
/// Returns the reference to the provided `API key`.
#[inline]
#[must_use]
pub fn api_key(&self) -> &str {
self.config().api_key.as_ref()
}

/// Returns the reference to the used base `URL`.
/// Returns the reference to the used `base URL`.
///
/// ### Notes
///
Expand All @@ -114,7 +114,7 @@ impl Client {
#[inline]
#[must_use]
pub fn client(&self) -> ReqwestClient {
self.config().client()
self.config().client.clone()
}

/// Returns the reference to the inner [`Config`].
Expand Down
6 changes: 1 addition & 5 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub struct Config {
pub(crate) user_agent: String,
pub(crate) api_key: String,
pub(crate) base_url: Url,
client: Client,
pub(crate) client: Client,
}

impl Config {
Expand Down Expand Up @@ -65,10 +65,6 @@ impl Config {
_ => Ok(response),
}
}

pub fn client(&self) -> Client {
self.client.clone()
}
}

impl fmt::Debug for Config {
Expand Down

0 comments on commit 0b66f02

Please sign in to comment.