Skip to content

Commit ce660ed

Browse files
committed
small fixes
1 parent bf4e0ba commit ce660ed

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

CONTRIBUTING.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Contributing to twitch_api
2+
13
## Git basics
24

35
### Cloning the repo
@@ -7,6 +9,13 @@ git clone https://github.com/twitch-rs/twitch_api.git --recurse-submodules
79
cd twitch_api
810
```
911

12+
You can also use the [GitHub CLI](https://cli.github.com/) to clone the repository.
13+
14+
```sh
15+
gh repo clone twitch-rs/twitch_api
16+
cd twitch_api
17+
```
18+
1019
### Checking out a branch
1120

1221
```sh
@@ -97,6 +106,6 @@ To update the `twitch_oauth2` submodule, run the appropriate
97106
For example, to update to the latest commit on the remote default branch,
98107
you may want to run:
99108

100-
```
109+
```sh
101110
git submodule update --remote twitch_oauth2
102111
```

examples/eventsub/src/twitch.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::{collections::VecDeque, sync::Arc};
1+
use std::sync::Arc;
22

33
use axum::{
44
body::HttpBody,
@@ -16,7 +16,7 @@ use twitch_api::{
1616
stream::{StreamOfflineV1, StreamOfflineV1Payload, StreamOnlineV1, StreamOnlineV1Payload},
1717
Event, EventType, Status,
1818
},
19-
helix::{self, eventsub::GetEventSubSubscriptionsRequest},
19+
helix,
2020
twitch_oauth2::{AppAccessToken, ClientId, ClientSecret, TwitchToken},
2121
types::{self, UserNameRef},
2222
HelixClient,

examples/eventsub_websocket/src/websocket.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use std::sync::Arc;
22

33
use eyre::Context;
4-
use tokio::sync::RwLock;
54
use tokio_tungstenite::tungstenite;
65
use tracing::Instrument;
76
use twitch_api::{

0 commit comments

Comments
 (0)