Skip to content

Commit

Permalink
Remove unnecessary allow(unused) attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
stomar committed Nov 5, 2023
1 parent bfe0f91 commit 49d1a73
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 49d1a73

Please sign in to comment.