Skip to content

Commit

Permalink
Bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
zesterer committed Oct 28, 2024
1 parent 80c140d commit 08f1eb7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

# [0.5.0] - 2024-10-28

### Changed

- Made `Report::build` accept a proper span, avoiding much type annotation trouble

# [0.4.1] - 2024-04-25

### Added
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ariadne"
version = "0.4.1"
version = "0.5.0"
description = "A fancy diagnostics & reporting crate"
authors = ["Joshua Barretto <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fn main() {
let b = colors.next();
let out = Color::Fixed(81);
Report::build(ReportKind::Error, "sample.tao", 12)
Report::build(ReportKind::Error, ("sample.tao", 12..12))
.with_code(3)
.with_message(format!("Incompatible types"))
.with_label(
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ pub struct Report<'a, S: Span = Range<usize>> {

impl<S: Span> Report<'_, S> {
/// Begin building a new [`Report`].
///
/// The span is the primary location at which the error should be reported.
pub fn build(kind: ReportKind, span: S) -> ReportBuilder<S> {
ReportBuilder {
kind,
Expand Down

0 comments on commit 08f1eb7

Please sign in to comment.