File: 1001_fence_features.patch

package info (click to toggle)
rust-microformats 0.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,068 kB
  • sloc: javascript: 71; makefile: 26; sh: 1
file content (34 lines) | stat: -rw-r--r-- 984 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Description: add feature fencing
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2025-01-23
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/library/src/jf2/profiles.rs
+++ b/library/src/jf2/profiles.rs
@@ -43,15 +43,18 @@
     FeedMissingUpdateTime,
 }
 
+#[cfg(feature = "atom_syndication")]
 #[derive(thiserror::Error, Debug)]
 pub struct AtomError(String);
 
+#[cfg(feature = "atom_syndication")]
 impl From<atom_syndication::Error> for AtomError {
     fn from(err: atom_syndication::Error) -> Self {
         Self(err.to_string())
     }
 }
 
+#[cfg(feature = "atom_syndication")]
 impl Display for AtomError {
     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
         write!(f, "{}", self.0)
@@ -449,6 +452,7 @@
     }
 }
 
+#[cfg(feature = "atom_syndication")]
 fn extract_categories(value: Property) -> Result<Vec<atom_syndication::Category>, crate::Error> {
     value.into_list().into_iter().try_fold(
         Vec::default(),