Skip to content

Commit

Permalink
Merge pull request #232 from stomar/remove-allow-unused
Browse files Browse the repository at this point in the history
Remove unnecessary `allow(unused)` attribute
  • Loading branch information
pksunkara authored Nov 10, 2023
2 parents 6fb70c9 + 49d1a73 commit aec2cc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/tutorial/impl-draft.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ and we can start to write our actual tool.
Our `main` function only contains this line right now:

```rust,ignore
{{#include impl-draft.rs:15:15}}
{{#include impl-draft.rs:13:13}}
```

Let’s start by opening the file we got.

```rust,ignore
{{#include impl-draft.rs:16:16}}
{{#include impl-draft.rs:14:14}}
```

<aside>
Expand All @@ -35,7 +35,7 @@ Now, let’s iterate over the lines
and print each one that contains our pattern:

```rust,ignore
{{#include impl-draft.rs:18:22}}
{{#include impl-draft.rs:16:20}}
```

## Wrapping up
Expand Down
2 changes: 0 additions & 2 deletions src/tutorial/impl-draft.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(unused)]

use clap::Parser;

/// Search for a pattern in a file and display the lines that contain it.
Expand Down

0 comments on commit aec2cc7

Please sign in to comment.