You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: round_numbers.rs
    path of file: ./repos/svgcleaner/src/task
    
    the code of the file until where you have to start completion: // svgcleaner could help you to clean up your SVG files
// from unnecessary data.
// Copyright (C) 2012-2018 Evgeniy Reizner
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General
    
fn round_path(path: &mut path::Path, precision: usize) {
    use svgdom::path::SegmentData;

    for seg in &mut path.d {
        match *seg.data_mut() {
              SegmentData::MoveTo { ref mut x, ref mut y }
            | SegmentData::LineTo { ref mut x, ref mut y }
            | SegmentData::SmoothQuadratic { ref mut x, ref mut y } => {
                round_number(x, precision);
                round_number(y, precision);
            }

            SegmentData::HorizontalLineTo { ref mut x } => {
                round_number(x, precision);
            }

            SegmentData::VerticalLineTo { ref mut y } => {
                round_number(y, precision);
            }

            SegmentData::CurveTo { ref mut x1, ref mut y1, ref mut x2, ref mut y2,
                                   ref mut x, ref mut y } => {
                round_number(x1, precision);
                round_number(y1, precision);
                round_number(x2, precision);
                round_number(y2, precision);
                round_number(x, precision);
                round_number(y, precision);
            }

            SegmentData::SmoothCurveTo { ref mut x2, ref mut y2, ref mut x, ref mut y } => {
                round_number(x2, precision);
                round_number(y2, precision);
                round_number(x, precision);
                round_number(y, precision);
            }

            SegmentData::Quadratic { ref mut x1, ref mut y1, ref mut x, ref mut y } => {
                round_number(x1, precision);
                round_number(y1, precision);
                round_number(x, precision);
                round_number(y, precision);
            }

            SegmentData::EllipticalArc { ref mut rx, ref mut ry, ref mut x_axis_rotation,
                                         ref mut x, ref mut y, .. } => {
                round_number(rx, precision);
                round_number(ry, precision);
                round_number(x_axis_rotation, precision);
                round_number(x, precision);
                round_number(y, precision);
            }

            SegmentData::ClosePath => {}
        }
    }
}