Skip to content

Commit 011851e

Browse files
authored
Fix doc links (#11)
* Use current docker image * Fix links in docs
1 parent 4ea3492 commit 011851e

File tree

2 files changed

+9
-19
lines changed

2 files changed

+9
-19
lines changed

.circleci/config.yml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,34 @@
11
# Check that everything (tests, benches, etc) builds in std environments
22
precheck_steps: &precheck_steps
3-
docker:
4-
- image: jamwaffles/circleci-embedded-graphics:1.40.0-cimg
3+
docker: &docker
4+
- image: jamwaffles/circleci-embedded-graphics:1.40.0-3
55
auth:
66
username: jamwaffles
77
password: $DOCKERHUB_PASSWORD
88
steps:
99
- checkout
10-
- restore_cache:
10+
- restore_cache: &restore_cache
1111
key: v1-{{ .Environment.CIRCLE_PROJECT_REPONAME }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "Cargo.toml" }}
1212
- run: rustup default ${RUST_VERSION:-stable}
1313
- run: rustup component add rustfmt
1414
- run: cargo update
1515
- run: just build
16-
- save_cache:
16+
- save_cache: &save_cache
1717
key: v1-{{ .Environment.CIRCLE_PROJECT_REPONAME }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "Cargo.toml" }}
1818
paths:
1919
- ./target
2020
- /home/circleci/.cargo/registry
2121

2222
# Build crates for embedded target
2323
target_steps: &target_steps
24-
docker:
25-
- image: jamwaffles/circleci-embedded-graphics:1.40.0-cimg
26-
auth:
27-
username: jamwaffles
28-
password: $DOCKERHUB_PASSWORD
24+
docker: *docker
2925
steps:
3026
- checkout
31-
- restore_cache:
32-
keys:
33-
- v1-{{ .Environment.CIRCLE_PROJECT_REPONAME }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "Cargo.toml" }}
27+
- restore_cache: *restore_cache
3428
- run: just install-targets
3529
- run: cargo update
3630
- run: just build-targets --release
37-
- save_cache:
38-
key: v1-{{ .Environment.CIRCLE_PROJECT_REPONAME }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "Cargo.toml" }}
39-
paths:
40-
- ./target
41-
- /home/circleci/.cargo/registry
31+
- save_cache: *save_cache
4232

4333
version: 2
4434
jobs:

src/raw_tga.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ use crate::{
1414
///
1515
/// `RawTga` can be used to access lower level information about a TGA file and to access the
1616
/// raw pixel data. It can be created directly by using the [`from_slice`] constructor or accessed
17-
/// by calling [`raw`] method of a [`Tga`] object.
17+
/// by calling [`as_raw`] method of a [`Tga`] object.
1818
///
1919
/// [`from_slice`]: #method.from_slice
2020
/// [`Tga`]: struct.Tga.html
21-
/// [`raw`]: struct.Tga.html#method.raw
21+
/// [`as_raw`]: struct.Tga.html#method.as_raw
2222
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)]
2323
pub struct RawTga<'a> {
2424
/// Image data

0 commit comments

Comments
 (0)