diff --git a/crates/figma_import/src/tools/fetch.rs b/crates/figma_import/src/tools/fetch.rs index 0dd840b23..c44ed524c 100644 --- a/crates/figma_import/src/tools/fetch.rs +++ b/crates/figma_import/src/tools/fetch.rs @@ -83,6 +83,9 @@ pub fn fetch(args: Args) -> Result<(), ConvertError> { std::fs::read_to_string(config_path) .expect("Could not read API key from ~/.config/figma_access_token") + .trim() + .parse() + .unwrap() }); let mut doc: Document = Document::new(