Skip to content

Commit

Permalink
Move templates into root module (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Dec 26, 2022
1 parent 751d9bd commit 88fc7a2
Show file tree
Hide file tree
Showing 16 changed files with 8 additions and 9 deletions.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ use {
rarity::Rarity,
sat::Sat,
sat_point::SatPoint,
subcommand::{server::templates::ContentHtml, Subcommand},
subcommand::Subcommand,
tally::Tally,
templates::ContentHtml,
},
anyhow::{anyhow, bail, Context, Error},
bitcoin::{
Expand Down Expand Up @@ -90,6 +91,7 @@ mod sat;
mod sat_point;
mod subcommand;
mod tally;
mod templates;

type Result<T = (), E = Error> = std::result::Result<T, E>;

Expand Down
2 changes: 1 addition & 1 deletion src/subcommand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mod index;
mod info;
mod list;
mod parse;
pub(crate) mod server;
mod server;
mod subsidy;
mod supply;
mod traits;
Expand Down
11 changes: 4 additions & 7 deletions src/subcommand/server.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
use super::*;

use {
self::{
deserialize_from_str::DeserializeFromStr,
templates::{
BlockHtml, ClockSvg, HomeHtml, InputHtml, InscriptionHtml, InscriptionsHtml, OutputHtml,
PageContent, PageHtml, RangeHtml, RareTxt, SatHtml, TransactionHtml,
},
self::deserialize_from_str::DeserializeFromStr,
crate::templates::{
BlockHtml, ClockSvg, HomeHtml, InputHtml, InscriptionHtml, InscriptionsHtml, OutputHtml,
PageContent, PageHtml, RangeHtml, RareTxt, SatHtml, TransactionHtml,
},
axum::{
body,
Expand All @@ -30,7 +28,6 @@ use {
};

mod deserialize_from_str;
pub(crate) mod templates;

enum BlockQuery {
Height(u64),
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 88fc7a2

Please sign in to comment.