fn is_conffile<T>(path: T) -> bool
where
	T: AsRef<Path>,
{
	let path = path.as_ref();
	path.is_file()
		&& if let Some(ext) = path.extension() {
			ext == "json"
		} else {
			false
		}
}
/// must be a regular file and have .json extension
must be a regular file and have .json extension
must be a regular file and have . json extension
fn is_conffile<T>(path: T) -> bool
where
	T: AsRef<Path>,
{
	let path = path.as_ref();
	path.is_file()
		&& if let Some(ext) = path.extension() {
			ext == "json"
		} else {
			false
		}
}
fn is_conffile < T > ( path : T ) -> bool where T : AsRef < Path > , { let path = path . as_ref ( ) ; path . is_file ( ) && if let Some ( ext ) = path . extension ( ) { ext == " " } else { false } }
must be a regular file and have .json extension
must be a regular file and have . json extension
path
T
path
T