more words
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Cadey Ratio 2020-07-31 13:42:47 -04:00
parent 2c2fc3ee09
commit 0ffd86c9f6
1 changed files with 4 additions and 4 deletions

View File

@ -1,13 +1,13 @@
use async_std::task;
use maj::{
gemini::Builder,
gemini::{Builder, Node},
route, seg,
server::{Error, Handler as MajHandler, Request},
split, Response,
};
use percent_encoding::percent_decode_str;
use rustls::internal::pemfile::{certs, rsa_private_keys};
use rustls::{
internal::pemfile::{certs, rsa_private_keys},
AllowAnyAnonymousOrAuthenticatedClient, Certificate, PrivateKey, RootCertStore, ServerConfig,
};
use std::fs::File;
@ -121,7 +121,7 @@ async fn input(req: Request) -> Result<Response, Error> {
match req.url.query() {
None => Ok(Response::input("test")),
Some(q) => Ok({
use maj::gemini::Node::{self, *};
use Node::*;
let result = vec![
Heading {
level: 1,
@ -139,7 +139,7 @@ async fn input(req: Request) -> Result<Response, Error> {
async fn user(name: String) -> Result<Response, Error> {
Ok(Response::render({
use maj::gemini::Node::{self, *};
use Node::*;
vec![
Heading {