fix: bump solang and adjust breaking change

fixes https://github.com/gakonst/ethers-rs/issues/985
This commit is contained in:
Georgios Konstantopoulos 2022-03-03 16:47:09 -08:00
parent 9626cc1335
commit de275db56a
2 changed files with 6 additions and 3 deletions

4
Cargo.lock generated
View File

@ -3511,9 +3511,9 @@ dependencies = [
[[package]]
name = "solang-parser"
version = "0.1.2"
version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec12f31165397a3b145b0b06bc47470226ac9bf52b9aa8ea1ab7aa6e74809b39"
checksum = "a06b8bfb6c910adbada563211b876b91a058791505e4cb646591b205fa817d01"
dependencies = [
"lalrpop",
"lalrpop-util",

View File

@ -756,7 +756,10 @@ impl From<Match<'_>> for Location {
impl From<Loc> for Location {
fn from(src: Loc) -> Self {
Location { start: src.1, end: src.2 }
match src {
Loc::File(_, start, end) => Location { start, end },
_ => Location { start: 0, end: 0 },
}
}
}