Skip to content

Commit 1a0a809

Browse files
authored
Perform some minor cleanups (#3051)
1 parent 099315f commit 1a0a809

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/builder/create_attachment.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ use serde::ser::{Serialize, SerializeSeq, Serializer};
66
use tokio::fs::File;
77
use tokio::io::AsyncReadExt;
88

9-
#[expect(unused)] // Error is used in docs
10-
use crate::error::{Error, Result};
9+
#[cfg(doc)]
10+
use crate::error::Error;
11+
use crate::error::Result;
1112
#[cfg(feature = "http")]
1213
use crate::http::Http;
1314
use crate::model::channel::Message;
File renamed without changes.

0 commit comments

Comments
 (0)