Skip to content

Update dependencies #44

Update dependencies

Update dependencies #44

Triggered via push June 4, 2024 09:08
Status Failure
Total duration 1m 12s
Artifacts

rust.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 3 warnings
mismatched types: src/config/markup.rs#L105
error[E0308]: mismatched types --> src/config/markup.rs:105:9 | 103 | pub fn export_theme_css(&self, theme_name: &str) -> String { | ------ expected `std::string::String` because of return type 104 | let theme = self.get_highlight_theme_by_name(theme_name); 105 | css_for_theme_with_class_style(theme, CLASS_STYLE) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `String`, found `Result<String, Error>` | = note: expected struct `std::string::String` found enum `std::result::Result<std::string::String, syntect::Error>` help: consider using `Result::expect` to unwrap the `std::result::Result<std::string::String, syntect::Error>` value, panicking if the value is a `Result::Err` | 105 | css_for_theme_with_class_style(theme, CLASS_STYLE).expect("REASON") | +++++++++++++++++
no method named `replace` found for enum `std::result::Result` in the current scope: src/codeblock/highlight.rs#L109
error[E0599]: no method named `replace` found for enum `std::result::Result` in the current scope --> src/codeblock/highlight.rs:109:21 | 109 | highlighted.replace(&self.fg_color, "") | ^^^^^^^ method not found in `Result<String, Error>` | note: the method `replace` exists on the type `std::string::String` --> /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/alloc/src/str.rs:271:5 help: consider using `Result::expect` to unwrap the `std::string::String` value, panicking if the value is a `Result::Err` | 109 | highlighted.expect("REASON").replace(&self.fg_color, "") | +++++++++++++++++
mismatched types: src/codeblock/highlight.rs#L46
error[E0308]: mismatched types --> src/codeblock/highlight.rs:46:13 | 46 | let (formatted_line, delta) = line_tokens_to_classed_spans( | _____________^^^^^^^^^^^^^^^^^^^^^^^___- | | | | | expected `Result<(String, isize), Error>`, found `(_, _)` 47 | | line, 48 | | parsed_line.as_slice(), 49 | | CLASS_STYLE, 50 | | &mut self.scope_stack, 51 | | ); | |_________- this expression has type `std::result::Result<(std::string::String, isize), syntect::Error>` | = note: expected enum `std::result::Result<(std::string::String, isize), syntect::Error>` found tuple `(_, _)` help: try wrapping the pattern in `Ok` | 46 | let Ok((formatted_line, delta)) = line_tokens_to_classed_spans( | +++ +
no method named `as_slice` found for enum `std::result::Result` in the current scope: src/codeblock/highlight.rs#L48
error[E0599]: no method named `as_slice` found for enum `std::result::Result` in the current scope --> src/codeblock/highlight.rs:48:25 | 48 | parsed_line.as_slice(), | ^^^^^^^^ method not found in `Result<Vec<(usize, ScopeStackOp)>, ParsingError>` | note: the method `as_slice` exists on the type `std::vec::Vec<(usize, syntect::parsing::ScopeStackOp)>` --> /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/alloc/src/vec/mod.rs:1227:5 help: consider using `Result::expect` to unwrap the `std::vec::Vec<(usize, syntect::parsing::ScopeStackOp)>` value, panicking if the value is a `Result::Err` | 48 | parsed_line.expect("REASON").as_slice(), | +++++++++++++++++
build
Clippy had exited with the 101 exit code
use of deprecated method `syntect::easy::HighlightLines::<'a>::highlight`: Renamed to `highlight_line` to make it clear it should be passed a single line at a time: src/codeblock/highlight.rs#L98
warning: use of deprecated method `syntect::easy::HighlightLines::<'a>::highlight`: Renamed to `highlight_line` to make it clear it should be passed a single line at a time --> src/codeblock/highlight.rs:98:30 | 98 | let regions = self.h.highlight(line, self.syntax_set); | ^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/