Skip to content

Commit

Permalink
Add clone to ParsedUri
Browse files Browse the repository at this point in the history
  • Loading branch information
SHAcollision committed Feb 2, 2025
1 parent 4a305a4 commit 3ce87b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/uri_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::{
};
use std::convert::TryFrom;

#[derive(Debug, PartialEq, Default)]
#[derive(Debug, PartialEq, Default, Clone)]
pub enum Resource {
User,
Post(String),
Expand All @@ -24,7 +24,7 @@ pub enum Resource {
Unknown,
}

#[derive(Debug, Default)]
#[derive(Debug, Default, Clone)]
pub struct ParsedUri {
pub user_id: PubkyId,
pub resource: Resource,
Expand Down

0 comments on commit 3ce87b2

Please sign in to comment.