fixing formatting error
This commit is contained in:
		@ -59,10 +59,10 @@ impl Env {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    fn fmt(&self) {
 | 
					    fn fmt(&self) {
 | 
				
			||||||
        print!("{{");
 | 
					 | 
				
			||||||
        let mut i = 0;
 | 
					        let mut i = 0;
 | 
				
			||||||
        let len = self.hashmap.len();
 | 
					        let len = self.hashmap.len();
 | 
				
			||||||
        if len > 0 {
 | 
					        if len > 0 {
 | 
				
			||||||
 | 
					            print!("{{");
 | 
				
			||||||
            for (key, val) in self.hashmap.iter() {
 | 
					            for (key, val) in self.hashmap.iter() {
 | 
				
			||||||
                print!("{:?} :", key);
 | 
					                print!("{:?} :", key);
 | 
				
			||||||
                match val {
 | 
					                match val {
 | 
				
			||||||
@ -273,15 +273,13 @@ fn fmt_tags(tagmask: u32) {
 | 
				
			|||||||
    let mut current: u32;
 | 
					    let mut current: u32;
 | 
				
			||||||
    while {
 | 
					    while {
 | 
				
			||||||
        current = 1 << tag;
 | 
					        current = 1 << tag;
 | 
				
			||||||
        current <= tagmask
 | 
					        current <= tagmask || tag < 32
 | 
				
			||||||
    } {
 | 
					    } {
 | 
				
			||||||
        tag += 1;
 | 
					        tag += 1;
 | 
				
			||||||
        if current != tagmask && (tagmask / current) % 2 != 0 {
 | 
					        if current != tagmask && (tagmask / current) % 2 != 0 {
 | 
				
			||||||
            fmt_tags(tagmask - current);
 | 
					            fmt_tags(tagmask - current);
 | 
				
			||||||
            print!(", ");
 | 
					            print!(", ");
 | 
				
			||||||
            break;
 | 
					            break;
 | 
				
			||||||
        } else if tag == 32 {
 | 
					 | 
				
			||||||
            break;
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    print!("\"{}\"", tag);
 | 
					    print!("\"{}\"", tag);
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user