Create a new converter with default fuel
()
| 48 | impl Converter { |
| 49 | /// Create a new converter with default fuel |
| 50 | pub fn new() -> Self { |
| 51 | Self { |
| 52 | fuel: DEFAULT_FUEL, |
| 53 | cache: Arc::new(RwLock::new(HashMap::new())), |
| 54 | stats: ConversionStats::default(), |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | /// Create a converter with custom fuel |
| 59 | pub fn with_fuel(fuel: u32) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected