From 2c5385ff4710247ab9f36f85150761436de0f1ab Mon Sep 17 00:00:00 2001 From: Scott Lyons Date: Fri, 6 Sep 2024 10:06:52 -0700 Subject: [PATCH] refactor(tokens_rs): adding conditional compilation for an import --- szurubooru-client/src/tokens.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/szurubooru-client/src/tokens.rs b/szurubooru-client/src/tokens.rs index ebcab6f..8a19a81 100644 --- a/szurubooru-client/src/tokens.rs +++ b/szurubooru-client/src/tokens.rs @@ -2,6 +2,7 @@ //! warned that the types here help with the Type safety for the Tag names only. It does //! not guarantee that a given API endpoint will support the given tag. +#[cfg(feature = "python")] use crate::models::{PostSafety, PostType, SnapshotOperationType, SnapshotResourceType, UserRank}; #[cfg(feature = "python")] use pyo3::{exceptions::PyValueError, prelude::*};