Fix nits
This commit is contained in:
@@ -159,7 +159,7 @@ fn main() -> Result<()> {
|
|||||||
///
|
///
|
||||||
/// Returns `None` if the config file does not exist.
|
/// Returns `None` if the config file does not exist.
|
||||||
#[tracing::instrument(level = "debug")]
|
#[tracing::instrument(level = "debug")]
|
||||||
pub fn load_config(path: &PathBuf) -> Result<Option<Config>> {
|
fn load_config(path: &PathBuf) -> Result<Option<Config>> {
|
||||||
let mut file = match File::open(path) {
|
let mut file = match File::open(path) {
|
||||||
Ok(file) => file,
|
Ok(file) => file,
|
||||||
Err(err) if err.kind() == io::ErrorKind::NotFound => {
|
Err(err) if err.kind() == io::ErrorKind::NotFound => {
|
||||||
@@ -188,7 +188,7 @@ pub fn load_config(path: &PathBuf) -> Result<Option<Config>> {
|
|||||||
///
|
///
|
||||||
/// The config is automatically stored to file.
|
/// The config is automatically stored to file.
|
||||||
#[tracing::instrument(level = "debug")]
|
#[tracing::instrument(level = "debug")]
|
||||||
pub fn create_config(
|
fn create_config(
|
||||||
path: &PathBuf,
|
path: &PathBuf,
|
||||||
distro: Option<&String>,
|
distro: Option<&String>,
|
||||||
backend: Backend,
|
backend: Backend,
|
||||||
|
|||||||
Reference in New Issue
Block a user