♻️ refactor(pmowebrenderer): factoriser handlers et supprimer duplications
- Remplacer les Arc+Box::pin manuels par la macro action_handler!(captures(...)) - Supprimer helpers locaux dupliqués dans renderer.rs (add_var, add_action) - Extraire handlers génériques pour GET requests - Factoriser extraction metadata dans set_uri_handler /set_next_uriHandler - Simplifier build_renderingcontrol en retirant pipeline inutile - Mettre à jour edition Rust de 2021 vers 2024 dans tous les Cargo.toml - Corriger pattern matching inutile `ref` sur déréférencement dans pmoaudio et pmoflac
This commit is contained in:
@@ -422,7 +422,7 @@ impl<'a> TryInto<&'a Arc<AudioChunk>> for &'a AudioSegment {
|
||||
|
||||
fn try_into(self) -> Result<&'a Arc<AudioChunk>, Self::Error> {
|
||||
match &self.segment {
|
||||
_AudioSegment::Chunk(ref chunk) => Ok(chunk),
|
||||
_AudioSegment::Chunk(chunk) => Ok(chunk),
|
||||
_ => Err(()),
|
||||
}
|
||||
}
|
||||
@@ -433,7 +433,7 @@ impl<'a> TryInto<&'a Arc<SyncMarker>> for &'a AudioSegment {
|
||||
|
||||
fn try_into(self) -> Result<&'a Arc<SyncMarker>, Self::Error> {
|
||||
match &self.segment {
|
||||
_AudioSegment::Sync(ref marker) => Ok(marker),
|
||||
_AudioSegment::Sync(marker) => Ok(marker),
|
||||
_ => Err(()),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user