Skip to content

Commit 722ee0a

Browse files
committed
handle warnings; tag 0.0.11
1 parent a3557bc commit 722ee0a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

moon.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tiye/cirru-parser",
3-
"version": "0.0.10",
3+
"version": "0.0.11",
44
"deps": {},
55
"readme": "README.md",
66
"repository": "https://github.com/Cirru/parser.mbt",

src/lib/primes.mbt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pub fn output(self : Cirru, logger : &Logger) -> Unit {
7575
}
7676

7777
///|
78-
pub fn to_string(self : Cirru) -> String {
78+
pub fn Cirru::to_string(self : Cirru) -> String {
7979
match self {
8080
Cirru::Leaf(s) =>
8181
if CirruLexItem::is_normal_str(s) {
@@ -176,12 +176,12 @@ enum CirruLexItem {
176176
}
177177

178178
///|
179-
fn output(self : CirruLexItem, logger : &Logger) -> Unit {
179+
fn CirruLexItem::output(self : CirruLexItem, logger : &Logger) -> Unit {
180180
logger.write_string(self.to_string())
181181
}
182182

183183
///|
184-
fn to_string(self : CirruLexItem) -> String {
184+
fn CirruLexItem::to_string(self : CirruLexItem) -> String {
185185
match self {
186186
CirruLexItem::Open => "("
187187
CirruLexItem::Close => ")"
@@ -229,7 +229,7 @@ fn CirruLexItem::is_normal_str(tok : String) -> Bool {
229229

230230
///|
231231
fn escape_cirru_leaf(s : String) -> String {
232-
if is_normal_str(s) {
232+
if CirruLexItem::is_normal_str(s) {
233233
return "\"\{s}\""
234234
} else {
235235
let mut out = "\""

src/lib/writer.mbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ fn get_node_kind(self : Cirru) -> WriterNode {
168168
pub(all) type! FormatCirruError String
169169

170170
///|
171-
pub fn to_string(self : FormatCirruError) -> String {
171+
pub fn FormatCirruError::to_string(self : FormatCirruError) -> String {
172172
match self {
173173
FormatCirruError(s) => s
174174
}

0 commit comments

Comments
 (0)