Skip to content

v0.2.0

Compare
Choose a tag to compare
@srishanbhattarai srishanbhattarai released this 02 Dec 08:43

Breaking Changes

  • The tuple fields for latitude and longitude from the location struct are no longer public. Instead, getters have been added named latitude() and longitude()
let loc = Location::new(123.012, 45.68);

// Previously
let lat = loc.0;
let lon = loc.1;

// Now
let lat = loc.latitude()
let lon = loc.longitude()

Changes