Skip to content

Commit

Permalink
Disable unused default features of rust_decimal (#1029)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb authored Sep 6, 2024
1 parent af79ed6 commit 18d004a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion utoipa-gen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ axum = { version = "0.7", default-features = false, features = ["json", "query"]
paste = "1"
rocket = { version = "0.5", features = ["json"] }
smallvec = { version = "1.10", features = ["serde"] }
rust_decimal = "1"
rust_decimal = { version = "1", default-features = false }
chrono = { version = "0.4", features = ["serde"] }
assert-json-diff = "2"
time = { version = "0.3", features = ["serde-human-readable"] }
Expand Down
2 changes: 1 addition & 1 deletion utoipa-gen/tests/schema_derive_test.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{borrow::Cow, cell::RefCell, collections::HashMap, marker::PhantomData, vec};
use std::{borrow::Cow, cell::RefCell, collections::HashMap, marker::PhantomData};

use assert_json_diff::{assert_json_eq, assert_json_matches, CompareMode, Config, NumericMode};
use serde::Serialize;
Expand Down
4 changes: 2 additions & 2 deletions utoipa-rapidoc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,14 +438,14 @@ mod rocket {

#[cfg(test)]
mod tests {
use super::*;

#[test]
#[cfg(feature = "axum")]
fn test_axum_with_empty_path() {
use ::axum::Router;
use utoipa::OpenApi;

use super::RapiDoc;

#[derive(utoipa::OpenApi)]
#[openapi()]
struct ApiDoc;
Expand Down

0 comments on commit 18d004a

Please sign in to comment.