don't
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(knot): remove dubious use of `Cow` in repository extractor

Signed-off-by: tjh <x@tjh.dev>

tjh ad2de531 6c302b4a

+3 -3
+3 -3
crates/knot/src/model/repository.rs
··· 1 1 mod merge_check; 2 2 3 - use std::{borrow::Cow, collections::HashSet, path::Path, process::Command}; 3 + use std::{collections::HashSet, path::Path, process::Command}; 4 4 5 5 use axum::{ 6 6 Json, ··· 482 482 state: &S, 483 483 ) -> Result<Self, Self::Rejection> { 484 484 #[derive(Deserialize)] 485 - struct Param<'a> { 486 - repo: Cow<'a, str>, 485 + struct Param { 486 + repo: String, 487 487 } 488 488 489 489 let XrpcQuery(Param { repo }) = XrpcQuery::from_request_parts(parts, state).await?;