Skip to content

Commit b41f79c

Browse files
committed
fix: add missing closing braces in lib.rs and sort imports in main.rs
1 parent 5ce6613 commit b41f79c

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

contract/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ pub struct SubmitResponse {
6666
pub transaction_id: Option<String>,
6767
pub anchored_at: Option<i64>,
6868
pub error: Option<String>,
69+
}
6970

7071
#[derive(Debug, Deserialize)]
7172
pub struct RevokeRequest {
@@ -95,6 +96,7 @@ pub struct HistoryResponse {
9596
pub transactions: Vec<TransactionRecord>,
9697
pub count: usize,
9798
pub cached: bool,
99+
}
98100

99101
#[derive(Debug, Serialize)]
100102
pub struct ValidationErrorResponse {

contract/src/main.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ use axum::{
77
};
88
use serde::{Deserialize, Serialize};
99
use std::sync::Arc;
10+
use stellar_doc_verifier::app;
11+
use stellar_doc_verifier::cache::{CacheBackend, RedisCache};
12+
use stellar_doc_verifier::config::AppConfig;
13+
use stellar_doc_verifier::metrics::MetricsRegistry;
14+
use stellar_doc_verifier::stellar::StellarClient;
15+
use stellar_doc_verifier::*;
1016
use tokio::net::TcpListener;
1117
use tower_http::trace::TraceLayer;
1218
use tracing::{info, warn};
1319
use tracing_subscriber::EnvFilter;
14-
use stellar_doc_verifier::*;
15-
use stellar_doc_verifier::stellar::StellarClient;
16-
use stellar_doc_verifier::cache::{CacheBackend, RedisCache};
17-
use stellar_doc_verifier::metrics::MetricsRegistry;
18-
use stellar_doc_verifier::config::AppConfig;
19-
use stellar_doc_verifier::app;
2020

2121
#[tokio::main]
2222
async fn main() -> Result<(), Box<dyn std::error::Error>> {

0 commit comments

Comments
 (0)