Skip to content

Commit eef5956

Browse files
authored
Merge pull request kayleg#23 from novedevo/master
Enable syntax highlighting in README.md
2 parents 7d010a7 + 20d2d0c commit eef5956

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The JWT token has a short life time and needs to be renewed periodically for lon
1717

1818
There is a provided helper which will renew the token every `15 mins`:
1919

20-
```
20+
```rs
2121
let pubsub = match BaseClient::create(config.google_application_credentials) {
2222
Err(e) => panic!("Failed to initialize pubsub: {}", e),
2323
Ok(p) => p,
@@ -32,7 +32,7 @@ tokio::run(lazy(move || {
3232

3333
[Envy](https://github.com/softprops/envy) is an excellent way to load your config.
3434

35-
```
35+
```rs
3636
#[derive(Deserialize)]
3737
struct Config {
3838
pubsub_subscription: String,
@@ -62,13 +62,13 @@ There are many available implementations to chose from, for example:
6262

6363
[env_logger](https://github.com/sebasmagri/env_logger/) is an excellent way to log in your executables.
6464

65-
```
65+
```toml
6666
[dependencies]
6767
log = "0.4"
6868
env_logger = "0.7"
6969
```
7070

71-
```
71+
```rs
7272
fn main() {
7373
env_logger::init();
7474

@@ -82,7 +82,7 @@ fn main() {
8282

8383
### Connecting to existing subscription
8484

85-
```
85+
```rs
8686
let sub = my_client.subscribe("subscription-name")
8787
```
8888

0 commit comments

Comments
 (0)