We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 118cc58 commit ae487e3Copy full SHA for ae487e3
CHANGELOG-rust.md
@@ -5,6 +5,8 @@ This changelog tracks the Rust `svdtools` project. See
5
6
## [Unreleased]
7
8
+* If there is no path to interpolate, show unmodified `description`.
9
+
10
## [v0.3.13] 2024-03-29
11
12
* Interpolate path and name in `description` and `derivedFrom`
src/patch/mod.rs
@@ -805,6 +805,7 @@ impl Spec for str {
805
806
fn opt_interpolate<T: Interpolate>(path: &Option<&T>, s: Option<&str>) -> Option<String> {
807
path.and_then(|path| path.interpolate_opt(s))
808
+ .or_else(|| s.map(ToString::to_string))
809
}
810
811
trait Interpolate {
0 commit comments