Skip to content

Commit 272f1a8

Browse files
committed
Fix warning
1 parent a675b0b commit 272f1a8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tokio-postgres/src/config.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,14 +294,17 @@ impl fmt::Display for UnknownOption {
294294
impl error::Error for UnknownOption {}
295295

296296
#[derive(Debug)]
297+
#[cfg(feature = "runtime")]
297298
struct InvalidValue(&'static str);
298299

300+
#[cfg(feature = "runtime")]
299301
impl fmt::Display for InvalidValue {
300302
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
301303
write!(fmt, "invalid value for option `{}`", self.0)
302304
}
303305
}
304306

307+
#[cfg(feature = "runtime")]
305308
impl error::Error for InvalidValue {}
306309

307310
struct Parser<'a> {

0 commit comments

Comments
 (0)