Skip to content

Commit fa60f6d

Browse files
authored
Merge pull request #861 from arcstur/master
Updating Arch Linux packages
2 parents 62deda8 + 9392ee5 commit fa60f6d

3 files changed

Lines changed: 9 additions & 12 deletions

File tree

crates/xdv/src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,7 @@ impl<T: XdvEvents> XdvParser<T> {
250250
if n_in_buffer != 0 && n_consumed == 0 {
251251
// We're going to need a bigger buffer in order to handle whatever
252252
// we're reading. Let's double it.
253-
let len = buf.len();
254-
buf.reserve(len);
255-
unsafe {
256-
buf.set_len(2 * len);
257-
}
253+
buf.resize(2 * buf.len(), 0);
258254
}
259255

260256
if n_read == 0 {

docs/src/installation/index.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,16 @@ $ conda install -c conda-forge tectonic
7777

7878
### Arch Linux
7979

80-
For users of [Arch Linux], there are two Tectonic packages available. The
81-
[tectonic-bin][arch-tectonic-bin] package on [AUR] provides actual pre-compiled
82-
binaries, while the [tectonic][arch-tectonic] will build the binary on your
83-
machine, which may take a while.
80+
For users of [Arch Linux], there are two Tectonic packages available: [tectonic][arch-tectonic] from the official repositories, which can be installed with
81+
```sh
82+
$ sudo pacman -S tectonic
83+
```
84+
and [tectonic-git][arch-tectonic-git] from the [AUR].
8485

8586
[Arch Linux]: https://archlinux.org/
86-
[arch-tectonic-bin]: https://aur.archlinux.org/packages/tectonic-bin/
87+
[arch-tectonic]: https://archlinux.org/packages/community/x86_64/tectonic/
8788
[AUR]: https://aur.archlinux.org/
88-
[arch-tectonic]: https://aur.archlinux.org/packages/tectonic/
89+
[arch-tectonic-git]: https://aur.archlinux.org/packages/tectonic-git
8990

9091
### Homebrew
9192

src/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1550,7 +1550,7 @@ impl ProcessingSession {
15501550
status.note_highlighted(
15511551
"Writing ",
15521552
&format!("`{}`", real_path.display()),
1553-
&format!(" ({})", byte_len.get_appropriate_unit(true).to_string()),
1553+
&format!(" ({})", byte_len.get_appropriate_unit(true)),
15541554
);
15551555

15561556
let mut f = File::create(&real_path)?;

0 commit comments

Comments
 (0)