rust/rhg/src/commands/root.rs
changeset 45360 227281e76c22
parent 45358 452ece5654c5
child 45361 47997afadf08
equal deleted inserted replaced
45359:0f5286ccf82c 45360:227281e76c22
    27         let bytes = get_bytes_from_path(path_buf);
    27         let bytes = get_bytes_from_path(path_buf);
    28 
    28 
    29         // TODO use formating macro
    29         // TODO use formating macro
    30         self.ui.write_stdout(&[bytes.as_slice(), b"\n"].concat())?;
    30         self.ui.write_stdout(&[bytes.as_slice(), b"\n"].concat())?;
    31 
    31 
    32         Err(CommandErrorKind::Ok.into())
    32         Ok(())
    33     }
    33     }
    34 
    34 
    35     fn display_error(&self, error: FindRootError) -> Result<(), CommandError> {
    35     fn display_error(&self, error: FindRootError) -> Result<(), CommandError> {
    36         match error.kind {
    36         match error.kind {
    37             FindRootErrorKind::RootNotFound(path) => {
    37             FindRootErrorKind::RootNotFound(path) => {