fix cargo warnings.
This commit is contained in:
		
							parent
							
								
									4c11c4df3e
								
							
						
					
					
						commit
						44c6da936e
					
				
					 10 changed files with 17 additions and 20 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,4 @@
 | 
			
		|||
#![allow(unused)]
 | 
			
		||||
use std::{rc::{Weak, Rc}, cell::RefCell};
 | 
			
		||||
 | 
			
		||||
#[derive(Debug)]
 | 
			
		||||
| 
						 | 
				
			
			@ -1,4 +1,5 @@
 | 
			
		|||
use crate::fileTree::*;
 | 
			
		||||
#![allow(unused)]
 | 
			
		||||
use crate::file_tree::*;
 | 
			
		||||
use once_cell::sync::Lazy;
 | 
			
		||||
use regex::Regex;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,5 @@
 | 
			
		|||
use crate::fileTree::*;
 | 
			
		||||
#![allow(unused)]
 | 
			
		||||
use crate::file_tree::*;
 | 
			
		||||
use crate::parser::*;
 | 
			
		||||
 | 
			
		||||
pub fn part1() -> usize {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,5 @@
 | 
			
		|||
use crate::fileTree::*;
 | 
			
		||||
#![allow(unused)]
 | 
			
		||||
use crate::file_tree::*;
 | 
			
		||||
use crate::parser::*;
 | 
			
		||||
 | 
			
		||||
pub fn part2() -> usize {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,11 +1,12 @@
 | 
			
		|||
#![allow(unused)]
 | 
			
		||||
mod part1;
 | 
			
		||||
mod part2;
 | 
			
		||||
mod parser;
 | 
			
		||||
mod fileTree;
 | 
			
		||||
mod file_tree;
 | 
			
		||||
 | 
			
		||||
fn main() {
 | 
			
		||||
    let _input = include_str!("./input.txt");
 | 
			
		||||
    let _structured_input = parser::parse(_input);
 | 
			
		||||
    let input = include_str!("./input.txt");
 | 
			
		||||
    let structured_input = parser::parse(input);
 | 
			
		||||
 | 
			
		||||
    println!("Part One");
 | 
			
		||||
    println!("Result: {}", part1::part1());
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue