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 93657e3 commit 565e7f7Copy full SHA for 565e7f7
src/version.rs
@@ -262,12 +262,19 @@ impl From<pubgrub::Range<Version>> for Range {
262
Self { spec, range }
263
}
264
265
+
266
impl From<Version> for Range {
267
fn from(version: Version) -> Self {
268
pubgrub::Range::singleton(version).into()
269
270
271
272
+impl From<Range> for pubgrub::Range<Version> {
273
+ fn from(range: Range) -> Self {
274
+ range.range
275
+ }
276
+}
277
278
impl fmt::Debug for Range {
279
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
280
f.debug_tuple("Range").field(&self.spec).finish()
0 commit comments