Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Aug 25, 2023
1 parent d500de4 commit 0cc1b8d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
17 changes: 11 additions & 6 deletions rfd-api/src/server.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
use dropshot::{ApiDescription, ConfigDropshot, EndpointTagPolicy, HttpServerStarter, TagConfig, TagDetails};
use dropshot::{
ApiDescription, ConfigDropshot, EndpointTagPolicy, HttpServerStarter, TagConfig, TagDetails,
};
use serde::Deserialize;
use slog::Drain;
use std::{collections::HashMap, error::Error, fs::File, net::SocketAddr, path::PathBuf};
use tracing_slog::TracingSlogDrain;
use std::{error::Error, fs::File, net::SocketAddr, path::PathBuf, collections::HashMap};

use crate::{
context::ApiContext,
Expand Down Expand Up @@ -50,10 +52,13 @@ pub fn server(
};

let mut tag_definitions = HashMap::new();
tag_definitions.insert("hidden".to_string(), TagDetails {
description: Some("Internal endpoints".to_string()),
external_docs: None,
});
tag_definitions.insert(
"hidden".to_string(),
TagDetails {
description: Some("Internal endpoints".to_string()),
external_docs: None,
},
);

let mut api = ApiDescription::new().tag_config(TagConfig {
allow_other_tags: false,
Expand Down
2 changes: 1 addition & 1 deletion rfd-redirect/src/server.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use dropshot::{ApiDescription, ConfigDropshot, EndpointTagPolicy, HttpServerStarter, TagConfig};
use slog::Drain;
use tracing_slog::TracingSlogDrain;
use std::{error::Error, net::SocketAddr};
use tracing_slog::TracingSlogDrain;

use crate::{
context::Context,
Expand Down

0 comments on commit 0cc1b8d

Please sign in to comment.