Skip to content

Commit

Permalink
feat: derive all for public types
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuwn committed Jun 29, 2024
1 parent 2bc8ec6 commit fd9060a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[package]
name = "germ"
version = "0.4.3"
version = "0.4.4"
authors = ["Fuwn <[email protected]>"]
edition = "2021"
description = "The Ultimate Gemini Toolkit."
Expand Down
2 changes: 1 addition & 1 deletion src/ast/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use super::Node;
/// ```rust
/// let _ = germ::ast::Ast::from_string(r#"=> gemini://gem.rest/ GemRest"#);
/// ```
#[derive(Clone)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Ast {
inner: Vec<Node>,
}
Expand Down
2 changes: 1 addition & 1 deletion src/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ mod markdown;
#[cfg(feature = "macros")] mod macros;

/// Different targets to convert Gemtext to
#[derive(Clone)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum Target {
/// Convert Gemtext to HTML
HTML,
Expand Down
2 changes: 1 addition & 1 deletion src/meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use std::{borrow::Cow, collections::HashMap, fmt::Display};

/// Structure-ize a Gemini response's meta section into it's mime type and it's
/// parameters.
#[derive(Debug, Default, Clone)]
#[derive(Debug, Default, Clone, PartialEq, Eq)]
pub struct Meta {
/// The mime type of a Gemini response
mime: String,
Expand Down
2 changes: 1 addition & 1 deletion src/request/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use {
std::{borrow::Cow, fmt::Write},
};

#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq)]
pub struct Response {
status: Status,
meta: String,
Expand Down
2 changes: 1 addition & 1 deletion src/request/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use std::{fmt, fmt::Formatter};
/// assert_eq!(Status::from(10), Status::Input);
/// assert_eq!(i32::from(Status::Input), 10);
/// ```
#[derive(Debug, PartialEq, Clone, Eq)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum Status {
Input,
SensitiveInput,
Expand Down

0 comments on commit fd9060a

Please sign in to comment.