Skip to content

Commit a9f6fce

Browse files
committed
Clippy fixes and add 'ascii' to word list
1 parent 5e92549 commit a9f6fce

4 files changed

Lines changed: 44 additions & 5 deletions

File tree

crates/codebook/src/dictionaries/combined.gen.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ arw
143143
as
144144
asap
145145
asc
146+
ascii
146147
asctime
147148
asf
148149
aside
@@ -255,7 +256,6 @@ bgcolor
255256
bib
256257
bibliographystyle
257258
bif
258-
bif's
259259
big
260260
bigdecimal
261261
biginteger
@@ -1521,7 +1521,6 @@ in
15211521
inc
15221522
incl
15231523
include
1524-
indecies
15251524
indent
15261525
index
15271526
indexof
@@ -3567,4 +3566,4 @@ zsh
35673566
zshrc
35683567
zstrategy
35693568
zstream
3570-
zwindowbits
3569+
zwindowbits

crates/codebook/src/dictionaries/manager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ impl DictionaryManager {
8282
}
8383

8484
fn get_text_dictionary(&self, repo: TextRepo) -> Option<Arc<dyn Dictionary>> {
85-
if repo.text.is_some() {
86-
return Some(Arc::new(TextDictionary::new(repo.text.unwrap())));
85+
if let Some(text) = repo.text {
86+
return Some(Arc::new(TextDictionary::new(text)));
8787
}
8888
let text_path = match self.downloader.get(&repo.url.unwrap()) {
8989
Ok(path) => path,

examples/example.adoc

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
= Document Title
2+
Doc Writer <doc@example.com>
3+
:reproducible:
4+
:listing-caption: Listing
5+
:source-highlighter: rouge
6+
:toc:
7+
// Uncomment next line to add a title page (or set doctype to book)
8+
//:title-page:
9+
// Uncomment next line to set page size (default is A4)
10+
//:pdf-page-size: Letter
11+
12+
An example of a basic https://asciidoc.org[AsciiDoc] document prepared by {author}.
13+
14+
== Introduction
15+
16+
A paragraph followed by an unordered list{empty}footnote:[AsciiDoc supports unordered, ordered, and description lists.] with square bullets.footnote:[You may choose from square, disc, and circle for the bullet style.]
17+
18+
[square]
19+
* item 1
20+
* item 2
21+
* item 3
22+
23+
== Main
24+
25+
Here's how you say "`Hello, World!`" in Prawn:
26+
27+
.Create a basic PDF document using Prawn
28+
[source,ruby]
29+
----
30+
require 'prawn'
31+
32+
Prawn::Document.generate 'example.pdf' do
33+
text 'Hello, World!'
34+
end
35+
----
36+
37+
== Conclusion
38+
39+
That's all, folks!

word_lists/codebook.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
aarch
22
acl
3+
ascii
34
backends
45
backticks
56
bundler

0 commit comments

Comments
 (0)