Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Jun 30, 2024
1 parent 062c778 commit 82d9da7
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust (nightly)
uses: actions-rust-lang/[email protected]
with:
Expand Down
10 changes: 3 additions & 7 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
edition = "2018"

# https://github.com/rust-lang/rustfmt/blob/HEAD/Configurations.md#fn_single_line
# fn_single_line = true

# https://github.com/rust-lang/rustfmt/blob/HEAD/Configurations.md#merge_imports
# merge_imports = true
group_imports = "StdExternalCrate"
imports_granularity = "Crate"
use_field_init_shorthand = true
11 changes: 9 additions & 2 deletions src/conformance/runner.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
use std::{
collections::VecDeque, error::Error as StdError, future::Future, ops::Deref, string::ToString,
sync::atomic::AtomicUsize, sync::atomic::Ordering, sync::Arc,
collections::VecDeque,
error::Error as StdError,
future::Future,
ops::Deref,
string::ToString,
sync::{
atomic::{AtomicUsize, Ordering},
Arc,
},
};

use colored::{ColoredString, Colorize};
Expand Down
3 changes: 2 additions & 1 deletion src/spec/security_scheme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ pub enum SecurityScheme {

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

use super::*;

#[test]
fn test_http_basic_deser() {
const HTTP_BASIC_SAMPLE: &str = r#"{"type": "http", "scheme": "basic"}"#;
Expand Down
6 changes: 3 additions & 3 deletions src/validation/validator.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
use std::{collections::BTreeMap, fmt};

use log::trace;
use serde_json::Value as JsonValue;

use super::{AggregateError, DataType, Error, Path, RequiredFields, Validate};
use crate::{
spec::{Error as SchemaError, SchemaType, SchemaTypeSet},
Schema, Spec,
};

use log::trace;
use serde_json::Value as JsonValue;

#[derive(Debug)]
pub enum ValidationBranch {
Leaf,
Expand Down

0 comments on commit 82d9da7

Please sign in to comment.