aboutsummaryrefslogtreecommitdiff
path: root/syntax/report.rs
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/report.rs')
-rw-r--r--syntax/report.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/syntax/report.rs b/syntax/report.rs
index d1d8bc9b..1997182a 100644
--- a/syntax/report.rs
+++ b/syntax/report.rs
@@ -2,24 +2,24 @@ use quote::ToTokens;
use std::fmt::Display;
use syn::{Error, Result};
-pub struct Errors {
+pub(crate) struct Errors {
errors: Vec<Error>,
}
impl Errors {
- pub fn new() -> Self {
+ pub(crate) fn new() -> Self {
Errors { errors: Vec::new() }
}
- pub fn error(&mut self, sp: impl ToTokens, msg: impl Display) {
+ pub(crate) fn error(&mut self, sp: impl ToTokens, msg: impl Display) {
self.errors.push(Error::new_spanned(sp, msg));
}
- pub fn push(&mut self, error: Error) {
+ pub(crate) fn push(&mut self, error: Error) {
self.errors.push(error);
}
- pub fn propagate(&mut self) -> Result<()> {
+ pub(crate) fn propagate(&mut self) -> Result<()> {
let mut iter = self.errors.drain(..);
let mut all_errors = match iter.next() {
Some(err) => err,