Skip to content

Commit

Permalink
fix one const that I missed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Velfi committed May 14, 2024
1 parent afb8ef0 commit 0baea0b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ sealed class RustDependency(open val name: String) : SymbolDependencyContainer {
.builder()
.packageName(name).version(version())
// We rely on retrieving the structured dependency from the symbol later
.putProperty(PropertyKey, this).build(),
.putProperty(PROPERTY_KEY, this).build(),
) + dependencies().flatMap { it.dependencies }
}

companion object {
private const val PropertyKey = "rustdep"
private const val PROPERTY_KEY = "rustdep"

fun fromSymbolDependency(symbolDependency: SymbolDependency) =
symbolDependency.getProperty(PropertyKey, RustDependency::class.java).get()
symbolDependency.getProperty(PROPERTY_KEY, RustDependency::class.java).get()
}
}

Expand Down

0 comments on commit 0baea0b

Please sign in to comment.