remove extra format

This commit is contained in:
yggverse 2025-03-24 07:38:26 +02:00
parent 3de096cced
commit 71043bbf73
2 changed files with 2 additions and 4 deletions

View file

@ -28,8 +28,7 @@ impl Success {
#[test] #[test]
fn test() { fn test() {
match Success::parse(format!("20 text/gemini; charset=utf-8; lang=en\r\n").as_bytes()).unwrap() match Success::parse("20 text/gemini; charset=utf-8; lang=en\r\n".as_bytes()).unwrap() {
{
Success::Default(default) => { Success::Default(default) => {
assert_eq!(default.header.mime().unwrap(), "text/gemini"); assert_eq!(default.header.mime().unwrap(), "text/gemini");
assert_eq!(default.content, None) assert_eq!(default.content, None)

View file

@ -31,8 +31,7 @@ impl Default {
#[test] #[test]
fn test() { fn test() {
let default = let default = Default::parse("20 text/gemini; charset=utf-8; lang=en\r\n".as_bytes()).unwrap();
Default::parse(format!("20 text/gemini; charset=utf-8; lang=en\r\n").as_bytes()).unwrap();
assert_eq!(default.header.mime().unwrap(), "text/gemini"); assert_eq!(default.header.mime().unwrap(), "text/gemini");
assert_eq!(default.content, None) assert_eq!(default.content, None)
} }